Skip to content

Commit 52f32c9

Browse files
committed
fix(manipulator): cancel animation when ending interaction
The buttonDown event in the manipulator requests animation but that was not being canceled in the successive buttonUp event. This change fixes that. fix #3286, #3323
1 parent 2d38c85 commit 52f32c9

File tree

1 file changed

+1
-0
lines changed
  • Sources/Interaction/Style/InteractorStyleManipulator

1 file changed

+1
-0
lines changed

Sources/Interaction/Style/InteractorStyleManipulator/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ function vtkInteractorStyleManipulator(publicAPI, model) {
425425
if (!model._interactor.isPointerLocked()) {
426426
model.currentManipulator = null;
427427
}
428+
model._interactor.cancelAnimation(publicAPI.onButtonDown);
428429
publicAPI.invokeEndInteractionEvent(END_INTERACTION_EVENT);
429430
}
430431
};

0 commit comments

Comments
 (0)