slider: Fix check for emulated scroll events
The name given by g-i is actually FLAG_POINTER_EMULATED, this made the check slightly ineffective, handling both real and emulated events in the case of touchpad scrolling. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2967>
This commit is contained in:
parent
70a0c2f919
commit
10b0e283e9
@ -143,7 +143,7 @@ export const Slider = GObject.registerClass({
|
||||
let direction = event.get_scroll_direction();
|
||||
let delta;
|
||||
|
||||
if (event.get_flags() & Clutter.EventFlags.POINTER_EMULATED)
|
||||
if (event.get_flags() & Clutter.EventFlags.FLAG_POINTER_EMULATED)
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
|
||||
if (direction === Clutter.ScrollDirection.DOWN) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user