mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2871>
This commit is contained in:
parent
854191c244
commit
c9741ae3d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue