glfw/glfw

Mouse scrolling events are sent twice on GNOME

Friz64 opened this issue · 2 comments

When scrolling with a mouse (not a laptop touchpad), the scroll events are sent twice. Reproduced on two different machines with two different mice using the events test. Couldn't reproduce on KDE Plasma.

Scrolling Up -> Down -> Up -> Down:

00000002 to 1 at 1.867: Scroll: 0.000 1.000
00000003 to 1 at 1.867: Scroll: 0.000 1.000
00000004 to 1 at 2.262: Scroll: 0.000 -1.000
00000005 to 1 at 2.262: Scroll: 0.000 -1.000
00000006 to 1 at 2.672: Scroll: 0.000 1.000
00000007 to 1 at 2.672: Scroll: 0.000 1.000
00000008 to 1 at 3.103: Scroll: 0.000 -1.000
00000009 to 1 at 3.103: Scroll: 0.000 -1.000

Here's WAYLAND_DEBUG=1 output if it helps: scrolling-wayland-debug.txt

This seems likely to be caused by a bug in GNOME's implementation of version 4 of wl_seat, especially considering that #2499 resolves the issue without any of the additional logic a move to version 5 would require. This is great news because I was going to implement support for at least version 8 soon anyway, which should then also fix this bug.