From 01ba274b191b73f3222f33dc1f56c2669ed5aba6 Mon Sep 17 00:00:00 2001 From: Aaron Date: Thu, 17 Oct 2024 15:18:09 +0800 Subject: [PATCH] fix: remove dom event listenser --- .../g-plugin-dom-interaction/src/DOMInteractionPlugin.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/g-plugin-dom-interaction/src/DOMInteractionPlugin.ts b/packages/g-plugin-dom-interaction/src/DOMInteractionPlugin.ts index 85d02fce3..19a25ba31 100644 --- a/packages/g-plugin-dom-interaction/src/DOMInteractionPlugin.ts +++ b/packages/g-plugin-dom-interaction/src/DOMInteractionPlugin.ts @@ -100,6 +100,11 @@ export class DOMInteractionPlugin implements RenderingPlugin { $el.removeEventListener('pointerleave', onPointerOut, true); $el.removeEventListener('pointerover', onPointerOver, true); runtime.globalThis.removeEventListener('pointerup', onPointerUp, true); + runtime.globalThis.removeEventListener( + 'pointercancel', + onPointerCancel, + true, + ); }; const removeTouchEventListener = ($el: HTMLElement) => {