Georges Basile Stavracas Neto
8154728d09
environment: Add Math.clamp
...
The good old clamp function, now part of the Math family.
Clamp is happy after so many years of loneliness.
This is a strict implementation of the draft ECMAScript
proposal.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1295
2020-06-03 12:55:53 -03:00
Daniel van Vugt
bd197789c1
js/ui: Subscribe touchpad gesture handlers to only touchpad events
...
The touchpad gesture handlers were receiving all events, all the time.
This meant that even mouse movements were getting translated into
JavaScript calls and then discarded by the handlers, which wasted CPU.
Now we subscribe the touchpad gesture handlers to only touchpad events.
Prequisite: https://gitlab.gnome.org/GNOME/mutter/merge_requests/1000
Closes: https://gitlab.gnome.org/GNOME/mutter/issues/283
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/925
2020-02-29 13:39:17 +00:00
Alexander Mikhaylenko
a06a418ac1
swipeTracker: Reset scroll gesture state on disabling
...
Ensure that scrolling works correctly next time it's enabled.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/2177
2020-02-06 17:36:05 +00:00
Alexander Mikhaylenko
a0c0e52229
swipeTracker: Introduce swipe tracker
...
Add a unified swipe tracker supporting dragging, four-finger swipe on both
touchscreen and touchpad, and touchpad scrolling.
The shared logic is largely same as the one in WebKit and libhandy.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/826
2020-01-10 18:20:22 +01:00