Skip to content

Commit 618c534

Browse files
Jo-Byrfinetjul
authored andcommitted
fix(TransformControlsWidget): fix translation and scaling abrupt stop
Fix bug in Translation and Scaling mode where the interaction would stop instantly after the first movement
1 parent aa40e64 commit 618c534

File tree

1 file changed

+4
-0
lines changed
  • Sources/Widgets/Widgets3D/TransformControlsWidget

1 file changed

+4
-0
lines changed

Sources/Widgets/Widgets3D/TransformControlsWidget/behavior.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ export default function widgetBehavior(publicAPI, model) {
169169
translation[axisIndex] = translateState.startPos + delta;
170170
model.widgetState.getTransform().setTranslation(translation);
171171
}
172+
173+
return macro.EVENT_ABORT;
172174
};
173175

174176
publicAPI.handleScaleEvent = (callData, axis, axisIndex) => {
@@ -189,6 +191,8 @@ export default function widgetBehavior(publicAPI, model) {
189191
scales[axisIndex] = scale;
190192
model.widgetState.getTransform().setScale(scales);
191193
}
194+
195+
return macro.EVENT_ABORT;
192196
};
193197

194198
publicAPI.handleRotateEvent = (callData) => {

0 commit comments

Comments
 (0)