Skip to content
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

Mouse move #1433

Merged
merged 2 commits into from
Sep 28, 2019
Merged

Mouse move #1433

merged 2 commits into from
Sep 28, 2019

Conversation

simonschmeisser
Copy link
Contributor

This addresses #1175

enable mouse tracking for render_panel

when mouseTracking is enabled for a QWidget it will get mouseMoveEvents even though no mouse button is pressed. This behavior was faked in rviz with a 30Hz timer.

This is currently preserving API/ABI but could just as well be non preserving and go to noetic only. I did not observe any positive or negative impact from this change, just cleaner code (eventually).

when mouseTracking is enabled for a QWidget it
will get mouseMoveEvents even though no mouse button
is pressed. This behaviour was faked in rviz with a 30Hz
timer.
removal with noetic API/ABI break
@rhaschke rhaschke merged commit d142f81 into ros-visualization:melodic-devel Sep 28, 2019
@rhaschke
Copy link
Contributor

Thanks a lot for this cleanup, which also fixes a nasty issue: If accidentally entering the RenderPanel with pressed mouse button, the camera was screwed...
Now, such mouse events are not passed to the RenderPanel anymore (because they are correctly caught by the original QWidget).

rhaschke added a commit to rhaschke/rviz that referenced this pull request Sep 29, 2019
@simonschmeisser simonschmeisser deleted the mouse_move branch February 24, 2020 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants