yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10784
[Branch ~yade-pkg/yade/git-trunk] Rev 3939: One more minor fix in zooming.
------------------------------------------------------------
revno: 3939
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Tue 2014-05-06 18:53:02 +0200
message:
One more minor fix in zooming.
modified:
gui/qt4/GLViewerMouse.cpp
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'gui/qt4/GLViewerMouse.cpp'
--- gui/qt4/GLViewerMouse.cpp 2014-05-06 14:24:07 +0000
+++ gui/qt4/GLViewerMouse.cpp 2014-05-06 16:53:02 +0000
@@ -38,7 +38,6 @@
void GLViewer::mouseMovesCamera(){
setWheelBinding(Qt::ShiftModifier , FRAME, ZOOM);
setWheelBinding(Qt::NoModifier, CAMERA, ZOOM);
- camera()->frame()->setWheelSensitivity(-1.0f);
#if QGLVIEWER_VERSION>=0x020500
setMouseBinding(Qt::ShiftModifier, Qt::LeftButton, SELECT);
@@ -62,6 +61,7 @@
setMouseBinding(Qt::MidButton, CAMERA, ZOOM);
setMouseBinding(Qt::LeftButton, CAMERA, ROTATE);
setMouseBinding(Qt::RightButton, CAMERA, TRANSLATE);
+ camera()->frame()->setWheelSensitivity(-1.0f);
#endif
};