Browse Source

Examples: Fix webgl_geometry_spline_editor.html (#25690)

Call render() after detach so that the tooltip disappears when clicking away from the selected helper point, as one would expect.
puqeko 2 years ago
parent
commit
705e47d035
1 changed files with 6 additions and 1 deletions
  1. 6 1
      examples/webgl_geometry_spline_editor.html

+ 6 - 1
examples/webgl_geometry_spline_editor.html

@@ -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();
+
+				}
 
 			}