diff options
author | Clifford Wolf <clifford@clifford.at> | 2012-04-24 09:50:41 (GMT) |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2012-04-24 09:50:41 (GMT) |
commit | 6d53b35f5b43de526248945aa046e37e8192845e (patch) | |
tree | 51220a85eb65a723fb75779def6412e2a3415c77 | |
parent | f5a7e92367adb7bbadaff8d27ff1610d91034b6a (diff) |
Actually lock X for middle mouse button panning
-rw-r--r-- | src/glview.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glview.cc b/src/glview.cc index 12657b8..aa2e746 100644 --- a/src/glview.cc +++ b/src/glview.cc @@ -603,6 +603,9 @@ void GLView::mouseMoveEvent(QMouseEvent *event) if (event->buttons() & Qt::MiddleButton) { my = mz; mz = 0; + // actually lock the x-position + // (turns out to be easier to use than xy panning) + mx = 0; } Matrix3d aax, aay, aaz, tm3; |