screenShield: Accept scrolls / swipes either way
If you turn on natural scrolling, instead of swiping up, you need to swipe down, which is bizarre. Just accept any type of scroll and have them contribute to the delta. https://bugzilla.gnome.org/show_bug.cgi?id=734874
This commit is contained in:
parent
584f8c8381
commit
d445bd17eb
@ -687,10 +687,10 @@ const ScreenShield = new Lang.Class({
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
|
||||
let delta = 0;
|
||||
if (event.get_scroll_direction() == Clutter.ScrollDirection.UP)
|
||||
if (event.get_scroll_direction() == Clutter.ScrollDirection.SMOOTH)
|
||||
delta = Math.abs(event.get_scroll_delta()[0]);
|
||||
else
|
||||
delta = 5;
|
||||
else if (event.get_scroll_direction() == Clutter.ScrollDirection.SMOOTH)
|
||||
delta = Math.max(0, event.get_scroll_delta()[0]);
|
||||
|
||||
this._lockScreenScrollCounter += delta;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user