GNOME Bugzilla – Bug 748952
[regression] scroll wheel does not work any more
Last modified: 2016-04-07 12:33:54 UTC
In eog 3.16 the scroll wheel does not work any more. It does not zoom nor scroll the image.
Just tried to be sure and it works for me. One just has to watch out that the mouse pointer is not over the overlaid buttons or the scroll events won't reach the view.
I tried again and it still does not work on gnome wayland session. It does work on gnome X session though. Could this be a gtk3 backend issue? If yes, can you please reassing/move this bug report?
Hmm, scrolling in the image view seems to be interpreted as a mouse movement under Wayland. You can see that the overlay buttons are shown again, if you wait for them to fade out.
Still seeing this: under x11, click scrolling zooms in/out, under Wayland, nothing happens. Seems eog-specific, though - scrolling text views works as expected elsewhere.
*** Bug 756662 has been marked as a duplicate of this bug. ***
I tried looking into this a bit, but I couldn't find the problem yet. Looking at the inspector I can see that widgets on the same level as the image viewing widget, like the sidebar, receive the scroll events just fine. However the image viewing widget seems to receive none. Could the widget being derived from GtkGrid being a problem?
It seems that we still need some emulation of up/down/left/right directions for GdkEventScroll in gtk+. Nonetheless, this is a case where smooth scroll events (and mask in EogScrolledWindow's GdkWindow) seem a perfect fit. Directional events in "ticks" are a good fit if you're doing discrete jumps (eg. as it was the case in GtkNotebook, when scrolling used to switch tabs).
Moving this back to eog then. It should use smooth scrolling
This issue is gone in eog and gtk+ 3.20