Skip to content

Commit

Permalink
SelectionHelper: ensure DOM cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr authored Feb 6, 2025
1 parent 91f9770 commit 977956a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/jsm/interactive/SelectionHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class SelectionHelper {
this.renderer.domElement.removeEventListener( 'pointermove', this.onPointerMove );
this.renderer.domElement.removeEventListener( 'pointerup', this.onPointerUp );

this.element.remove(); // in case disposal happens while dragging

}

onSelectStart( event ) {
Expand Down

0 comments on commit 977956a

Please sign in to comment.