summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2012-04-24 09:50:41 (GMT)
committerClifford Wolf <clifford@clifford.at>2012-04-24 09:50:41 (GMT)
commit6d53b35f5b43de526248945aa046e37e8192845e (patch)
tree51220a85eb65a723fb75779def6412e2a3415c77 /src
parentf5a7e92367adb7bbadaff8d27ff1610d91034b6a (diff)
Actually lock X for middle mouse button panning
Diffstat (limited to 'src')
-rw-r--r--src/glview.cc3
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;
contact: Jan Huwald // Impressum