diff --git a/src/zoom.ts b/src/zoom.ts index c68cb98..d668ab0 100644 --- a/src/zoom.ts +++ b/src/zoom.ts @@ -28,8 +28,8 @@ export class Zoom { window.addEventListener('pointermove', this.move) window.addEventListener('pointerup', this.up) - window.addEventListener('contextmenu', this.contextmenu) window.addEventListener('pointercancel', this.up) + window.addEventListener('contextmenu', this.contextmenu) } protected wheel = (e: WheelEvent) => { @@ -117,5 +117,6 @@ export class Zoom { window.removeEventListener('pointermove', this.move) window.removeEventListener('pointerup', this.up) window.removeEventListener('pointercancel', this.up) + window.removeEventListener('contextmenu', this.contextmenu) } }