From 10b0e283e984bc01e90dcb5dcb480822dc06fb47 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 22 Sep 2023 13:16:59 +0200 Subject: [PATCH] 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: --- js/ui/slider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/slider.js b/js/ui/slider.js index 42f464b71..0aea6d40d 100644 --- a/js/ui/slider.js +++ b/js/ui/slider.js @@ -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) {