Skip to content

Commit 8461381

Browse files
committed
Squash to initial pan backend
1 parent 0b3026d commit 8461381

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Gestures/PanBackend.vala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ internal class Gala.PanBackend : Object, GestureBackend {
7575
}
7676

7777
private void on_gesture_end () {
78-
on_end (calculate_percentage (), Meta.CURRENT_TIME);
78+
if (modal_proxy != null) {
79+
// Only emit on end if we actually began the gesture
80+
on_end (calculate_percentage (), Meta.CURRENT_TIME);
81+
}
7982

8083
reset ();
8184
}

0 commit comments

Comments
 (0)