We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89a11bd commit 8016d59Copy full SHA for 8016d59
src/index.ts
@@ -68,7 +68,9 @@ function updateCropArea(event: TouchEvent | MouseEvent | KeyboardEvent) {
68
if (!box) return
69
70
const rect = el.getBoundingClientRect()
71
- let deltaX, deltaY, delta
+ let deltaX
72
+ let deltaY
73
+ let delta
74
if (event instanceof KeyboardEvent) {
75
if (event.key === 'Escape') return setInitialPosition(el)
76
if (event.key === '-') delta = -10
@@ -204,6 +206,7 @@ class ImageCropElement extends HTMLElement {
204
206
if (constructedElements.has(this)) return
205
207
208
const shadowRoot = this.attachShadow({mode: 'open'})
209
+ // eslint-disable-next-line github/no-inner-html
210
shadowRoot.innerHTML = `
211
<style>
212
:host { touch-action: none; display: block; }
0 commit comments