-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for mousewheel to zoom in/out #623
Conversation
Signed-off-by: Chen Lihui <Lihui.Chen@sony.com>
Hi, @jacobperron From rviz/rviz_common/include/rviz_common/viewport_mouse_event.hpp Lines 95 to 96 in 323378a
and message in the status bar "Right-Click/Mouse Wheel:: Zoom. ", I think we need to use e->angleDelta().y() to instead of e->angleDelta().x() in
NOTE: https://doc.qt.io/qt-5/qwheelevent.html#angleDelta (angleDelta().y() provides the angle through which the common vertical mouse wheel was rotated since the previous event) |
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
friendly ping @jacobperron 🔕 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the fix!
* Fix for mousewheel to zoom in/out Signed-off-by: Chen Lihui <Lihui.Chen@sony.com> * Use vertical mouse wheel to test Signed-off-by: Chen Lihui <lihui.chen@sony.com>
Fixes #605
Signed-off-by: Chen Lihui Lihui.Chen@sony.com