Skip to content

Commit 6f621bc

Browse files
authored
Gestures: Keep smooth progress even with disabled animations (#2621)
Fixes #2620 Keep smooth progress during the gesture but still skip the finishing animation. This is also how adwaita does it for e.g. navigation view, carousel, etc.
1 parent c900aba commit 6f621bc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/Gestures/GestureController.vala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ public class Gala.GestureController : Object {
6464

6565
/**
6666
* When disabled gesture progress will stay where the gesture ended and not snap to full integers values.
67-
* This will also cause the controller to emit smooth progress information even if animations are disabled.
6867
*/
6968
public bool snap { get; construct set; default = true; }
7069

@@ -173,12 +172,6 @@ public class Gala.GestureController : Object {
173172
direction_multiplier *= -1;
174173
}
175174

176-
if (snap && !Meta.Prefs.get_gnome_animations ()) {
177-
recognizing = false;
178-
prepare ();
179-
finish (0, progress + direction_multiplier);
180-
}
181-
182175
recognizing_backend = backend;
183176
}
184177

0 commit comments

Comments
 (0)