Browse Source

do not update drag axis plane to avoid jittering while dragging (#8597)

Cedric Guillemet 5 years ago
parent
commit
33a29f29b5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Gizmos/boundingBoxGizmo.ts

+ 1 - 0
src/Gizmos/boundingBoxGizmo.ts

@@ -264,6 +264,7 @@ export class BoundingBoxGizmo extends Gizmo {
                     // Dragging logic
                     let dragAxis = new Vector3(i - 1, j - 1, k - 1);
                     var _dragBehavior = new PointerDragBehavior({ dragAxis: dragAxis });
+                    _dragBehavior.updateDragPlane = false;
                     _dragBehavior.moveAttached = false;
                     box.addBehavior(_dragBehavior);
                     _dragBehavior.onDragObservable.add((event) => {