fix bug where grab.js moves mouse to screen corner

when CTRL is pressed
This commit is contained in:
Andrew Meadows 2015-06-11 08:43:19 -07:00
parent 7d0000c537
commit f77f3f1e1e

View file

@ -140,6 +140,10 @@ function mouseIntersectionWithPlane(pointOnPlane, planeNormal, event) {
}
function computeNewGrabPlane() {
if (!gIsGrabbing) {
return;
}
var maybeResetMousePosition = false;
if (gGrabMode !== "rotate") {
gMouseAtRotateStart = gMouseCursorLocation;