From 07b7b981b53a7c212c7b037fc026bc53ec64cddb Mon Sep 17 00:00:00 2001 From: Donovan Hutchence Date: Thu, 11 Jul 2024 16:09:59 +0100 Subject: [PATCH] Small gizmo event handler fix (#6811) --- src/extras/gizmo/gizmo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extras/gizmo/gizmo.js b/src/extras/gizmo/gizmo.js index 5e97a9c65d1..3db1a64c39a 100644 --- a/src/extras/gizmo/gizmo.js +++ b/src/extras/gizmo/gizmo.js @@ -489,8 +489,8 @@ class Gizmo extends EventHandler { destroy() { this.detach(); - this._device.canvas.removeEventListener('pointerdown', this._onPointerDown); - this._device.canvas.removeEventListener('pointermove', this._onPointerMove); + this._device.canvas.removeEventListener('pointerdown', this._onPointerDown, true); + this._device.canvas.removeEventListener('pointermove', this._onPointerMove, true); this._device.canvas.removeEventListener('pointerup', this._onPointerUp); this.root.destroy();