Skip to content

Commit 6fa83e0

Browse files
authored
WindowClone: Don't disable swipe to close on reduced motion (#2659)
1 parent e75dbfa commit 6fa83e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Widgets/MultitaskingView/WindowClone.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public class Gala.WindowClone : ActorTarget, RootTarget {
271271
}
272272

273273
public override void update_progress (Gala.GestureAction action, double progress) {
274-
if (action == CUSTOM && slot != null && Meta.Prefs.get_gnome_animations ()) {
274+
if (action == CUSTOM && slot != null) {
275275
var target_translation_y = (float) (-CLOSE_TRANSLATION * monitor_scale * progress);
276276
var target_opacity = (uint) (255 * (1 - progress));
277277

@@ -292,7 +292,7 @@ public class Gala.WindowClone : ActorTarget, RootTarget {
292292
}
293293

294294
public override void end_progress (GestureAction action) {
295-
if (action == CUSTOM && get_current_commit (CUSTOM) > 0.5 && Meta.Prefs.get_gnome_animations ()) {
295+
if (action == CUSTOM && get_current_commit (CUSTOM) > 0.5) {
296296
close_window (Meta.CURRENT_TIME);
297297
}
298298
}

0 commit comments

Comments
 (0)