Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions lib/Gestures/PropertyTarget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,17 @@ public class Gala.PropertyTarget : Object, GestureTarget {
}

public void propagate (UpdateType update_type, GestureAction action, double progress) {
if (target == null || update_type != UPDATE || action != this.action) {
if (target == null || action != this.action) {
return;
}

target.set_property (property, interval.compute (progress));
if (update_type == START && target is Clutter.Actor) {
unowned var target_actor = (Clutter.Actor) target;

// We need to stop any transitions as they may interfere with the gesture
target_actor.remove_transition (property);
} else if (update_type == UPDATE) {
target.set_property (property, interval.compute (progress));
}
}
}