Skip to content

Commit 204ff86

Browse files
committed
Some more renaming
1 parent 4fdc942 commit 204ff86

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Gestures/GesturePropertyTransition.vala

+5-5
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,19 @@ public class Gala.GesturePropertyTransition : Object {
123123
};
124124

125125
GestureTracker.OnUpdate on_animation_update = (percentage) => {
126-
double end_percentage = 0;
126+
double stretched_percentage = 0;
127127
if (percentage < lower_clamp_int) {
128-
end_percentage = (percentage - lower_clamp_int) * -(overshoot_lower_clamp - lower_clamp_int);
128+
stretched_percentage = (percentage - lower_clamp_int) * -(overshoot_lower_clamp - lower_clamp_int);
129129
} else if (percentage > upper_clamp_int) {
130-
end_percentage = (percentage - upper_clamp_int) * (overshoot_upper_clamp - upper_clamp_int);
130+
stretched_percentage = (percentage - upper_clamp_int) * (overshoot_upper_clamp - upper_clamp_int);
131131
}
132132

133133
percentage = percentage.clamp (lower_clamp_int, upper_clamp_int);
134134

135135
var animation_value = GestureTracker.animation_value (from_value_float, to_value_float, percentage, false);
136136

137-
if (end_percentage != 0) {
138-
animation_value += (float) end_percentage * (to_value_float - from_value_float);
137+
if (stretched_percentage != 0) {
138+
animation_value += (float) stretched_percentage * (to_value_float - from_value_float);
139139
}
140140

141141
actor.set_property (property, value_from_float (animation_value));

0 commit comments

Comments
 (0)