gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
714 stars 270 forks source link

Enable scroll wheel to scroll right side panel #366

Open sloretz opened 4 years ago

sloretz commented 4 years ago

Currently (Ignition Citadel 3.3.0) the scroll wheel can only scroll the right panel if it is exactly over the scroll bar. It would be easier to scroll the panel if the scroll wheel could be used over the content being scrolled - just like scrolling in a web browser or text editor.

Peek 2020-09-23 09-37

chapulina commented 4 years ago

Yeah the tricky thing is that each individual plugin may also be scrollable, so when you scroll on top of the plugins, they're swallowing the scroll events.

I think the ideal behaviour is for the plugins to only swallow the scroll if they can be scrolled. Otherwise, they let the scroll event bubble up to the panel.

Like this text box on GitHub:

githubscroll

Related to https://github.com/ignitionrobotics/ign-gui/pull/97