From f6ac6c1cd4232618130ca411e3dcfd0aa7d8e273 Mon Sep 17 00:00:00 2001 From: Haroon Tahir Date: Fri, 8 Dec 2023 20:04:50 +0500 Subject: [PATCH] all Event Listeners are removed before Destroy --- src/concerns/dragging.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/concerns/dragging.coffee b/src/concerns/dragging.coffee index e274b89..7b8b863 100644 --- a/src/concerns/dragging.coffee +++ b/src/concerns/dragging.coffee @@ -44,6 +44,8 @@ export default window.removeEventListener 'touchmove', @onPointerMove, passive window.removeEventListener 'touchend', @onPointerUp, passive window.removeEventListener 'touchmove', @onWinMove, notPassive + window.removeEventListener 'contextmenu', @onPointerUp, passive + window.removeEventListener 'touchmove', @stopEvent, notPassive computed: