Skip to content

Commit d2f38b5

Browse files
committed
Gestures: Keep smooth progress even with disabled animations
Smooth progress during a gesture converys information about the gesture and should still happen according to our style docs.
1 parent c900aba commit d2f38b5

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)