Skip to content

Commit

Permalink
Examples: Fix webgl_geometry_spline_editor.html (mrdoob#25690)
Browse files Browse the repository at this point in the history
Call render() after detach so that the tooltip disappears when clicking away from the selected helper point, as one would expect.
  • Loading branch information
puqeko authored and sunag committed Mar 20, 2023
1 parent 9a4325b commit 8143243
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/webgl_geometry_spline_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,12 @@
onUpPosition.x = event.clientX;
onUpPosition.y = event.clientY;

if ( onDownPosition.distanceTo( onUpPosition ) === 0 ) transformControl.detach();
if ( onDownPosition.distanceTo( onUpPosition ) === 0 ) {

transformControl.detach();
render();

}

}

Expand Down

0 comments on commit 8143243

Please sign in to comment.