Skip to content

Commit

Permalink
Small gizmo event handler fix (#6811)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck committed Jul 11, 2024
1 parent efe8bd4 commit 07b7b98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extras/gizmo/gizmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 07b7b98

Please sign in to comment.