mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 18:53:37 +02:00
fix bug where grab.js moves mouse to screen corner
when CTRL is pressed
This commit is contained in:
parent
7d0000c537
commit
f77f3f1e1e
1 changed files with 4 additions and 0 deletions
|
@ -140,6 +140,10 @@ function mouseIntersectionWithPlane(pointOnPlane, planeNormal, event) {
|
|||
}
|
||||
|
||||
function computeNewGrabPlane() {
|
||||
if (!gIsGrabbing) {
|
||||
return;
|
||||
}
|
||||
|
||||
var maybeResetMousePosition = false;
|
||||
if (gGrabMode !== "rotate") {
|
||||
gMouseAtRotateStart = gMouseCursorLocation;
|
||||
|
|
Loading…
Reference in a new issue