mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 09:08:47 +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() {
|
function computeNewGrabPlane() {
|
||||||
|
if (!gIsGrabbing) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var maybeResetMousePosition = false;
|
var maybeResetMousePosition = false;
|
||||||
if (gGrabMode !== "rotate") {
|
if (gGrabMode !== "rotate") {
|
||||||
gMouseAtRotateStart = gMouseCursorLocation;
|
gMouseAtRotateStart = gMouseCursorLocation;
|
||||||
|
|
Loading…
Reference in a new issue