Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorejb committed Nov 21, 2023
1 parent 5b9e8b1 commit 38989d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/cropt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 38989d2

Please sign in to comment.