Skip to content

Commit

Permalink
Fix lint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Jun 14, 2022
1 parent 89a11bd commit 8016d59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ function updateCropArea(event: TouchEvent | MouseEvent | KeyboardEvent) {
if (!box) return

const rect = el.getBoundingClientRect()
let deltaX, deltaY, delta
let deltaX
let deltaY
let delta
if (event instanceof KeyboardEvent) {
if (event.key === 'Escape') return setInitialPosition(el)
if (event.key === '-') delta = -10
Expand Down Expand Up @@ -204,6 +206,7 @@ class ImageCropElement extends HTMLElement {
if (constructedElements.has(this)) return

const shadowRoot = this.attachShadow({mode: 'open'})
// eslint-disable-next-line github/no-inner-html
shadowRoot.innerHTML = `
<style>
:host { touch-action: none; display: block; }
Expand Down

0 comments on commit 8016d59

Please sign in to comment.