[Wayland-bugs] [Bug 765907] [Wayland] Reversed scrolling in GtkMenu

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Tue May 3 08:52:19 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=765907

--- Comment #4 from Olivier Fourdan <ofourdan at redhat.com> ---
Created attachment 327202
  --> https://bugzilla.gnome.org/attachment.cgi?id=327202&action=edit
[PATCH] wayland: fix up/down mix up in discrete events

The wayland specification for discrete step information for scroll and
other axes reads:

| The discrete value carries the directional information. e.g. a
| value of -2 is two steps towards the negative direction of this axis.

mutter sets a value of 1 for SCROLL_DOWN events and -1 for SCROLL_UP
events.

gdkdevice Wayland backend does the opposite, it translates a positive
discrete value as SCROLL_UP and a negative value as SCROLL_DOWN, which
ends up inverting the scrolling direction.

Fix the logic in gdkdevice Wayland to use a positive value as
SCROLL_DOWN and a negative value as SCROLL_UP so that it matches mutter
and weston logic.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160503/2bf82408/attachment.html>


More information about the wayland-bugs mailing list