mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 23:02:32 +02:00
fix continual translation when moving
This commit is contained in:
parent
6a16a37339
commit
93fc8e2e18
1 changed files with 7 additions and 9 deletions
|
@ -1334,14 +1334,7 @@ SelectionDisplay = (function() {
|
|||
ctrlPressed = false;
|
||||
that.updateActiveRotateRing();
|
||||
}
|
||||
if (activeTool && lastMouseEvent !== null) {
|
||||
lastMouseEvent.isShifted = event.isShifted;
|
||||
lastMouseEvent.isMeta = event.isMeta;
|
||||
lastMouseEvent.isControl = event.isControl;
|
||||
lastMouseEvent.isAlt = event.isAlt;
|
||||
activeTool.onMove(lastMouseEvent);
|
||||
SelectionManager._update(false, this);
|
||||
}
|
||||
that.updateLastMouseEventXZTranslation(event);
|
||||
};
|
||||
|
||||
// Triggers notification on specific key driven events
|
||||
|
@ -1350,7 +1343,12 @@ SelectionDisplay = (function() {
|
|||
ctrlPressed = true;
|
||||
that.updateActiveRotateRing();
|
||||
}
|
||||
if (activeTool && lastMouseEvent !== null) {
|
||||
that.updateLastMouseEventXZTranslation(event);
|
||||
};
|
||||
|
||||
that.updateLastMouseEventXZTranslation = function(event) {
|
||||
var xzTranslateToolActive = isActiveTool(selectionBox) || isActiveTool(iconSelectionBox);
|
||||
if (xzTranslateToolActive && lastMouseEvent !== null) {
|
||||
lastMouseEvent.isShifted = event.isShifted;
|
||||
lastMouseEvent.isMeta = event.isMeta;
|
||||
lastMouseEvent.isControl = event.isControl;
|
||||
|
|
Loading…
Reference in a new issue