From c9741ae3d5f661b2aee352c50ce21fab16694fbe Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 8 Aug 2023 16:10:39 +0200 Subject: [PATCH] ui/slider: Handle emulated scroll events through the Clutter.EventFlags Emulated scroll events no longer get event.is_pointer_emulated() set to True, instead this information is propagated through the Clutter.EventFlags of the event. 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 6653898b0..4f60556ae 100644 --- a/js/ui/slider.js +++ b/js/ui/slider.js @@ -140,7 +140,7 @@ export const Slider = GObject.registerClass({ let direction = event.get_scroll_direction(); let delta; - if (event.is_pointer_emulated()) + if (event.get_flags() & Clutter.EventFlags.POINTER_EMULATED) return Clutter.EVENT_PROPAGATE; if (direction == Clutter.ScrollDirection.DOWN) {