Skip to content

Commit

Permalink
Fix no callback
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Jan 23, 2025
1 parent a8b2a06 commit cd9ceac
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Gestures/GestureTracker.vala
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,9 @@ public class Gala.GestureTracker : Object {
if (!with_gesture) {
callback (1, 1, min_animation_duration);
} else {
ulong handler_id = on_end.connect ((percentage, completions, duration) => {
if (completions != 0) {
callback (percentage, completions, duration);
}
});
ulong handler_id = on_end.connect ((percentage, cancel_action, duration) =>
callback (percentage, cancel_action, duration)
);
handlers.add (handler_id);
}
}
Expand Down

0 comments on commit cd9ceac

Please sign in to comment.