From 38989d27d2a2f0e33ecb8e7a1d34ee8ae65941f3 Mon Sep 17 00:00:00 2001 From: Theodore Brown Date: Tue, 21 Nov 2023 10:15:18 -0600 Subject: [PATCH] Updates --- build/cropt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/cropt.js b/build/cropt.js index ac76265..20cea9e 100644 --- a/build/cropt.js +++ b/build/cropt.js @@ -355,7 +355,7 @@ export class Cropt { //this.elements.overlay.releasePointerCapture(ev.pointerId); pEventCache.delete(ev.pointerId); if (pEventCache.size === 0) { - this.elements.overlay.removeEventListener('pointerenter', pointerDown); + //this.elements.overlay.removeEventListener('pointerenter', pointerDown); this.elements.overlay.removeEventListener('pointermove', pointerMove); this.elements.overlay.removeEventListener('pointerup', pointerUp); this.elements.overlay.removeEventListener('pointerleave', pointerUp); @@ -378,7 +378,7 @@ export class Cropt { this.#setDragState(true, this.elements.preview); // add pointerenter listener to support pinch zoom initiated with // one pointer outside the overlay and then moved inside. - this.elements.overlay.addEventListener('pointerenter', pointerDown); + //this.elements.overlay.addEventListener('pointerenter', pointerDown); this.elements.overlay.addEventListener('pointermove', pointerMove); this.elements.overlay.addEventListener('pointerup', pointerUp); this.elements.overlay.addEventListener('pointerleave', pointerUp);