Skip to content

Commit

Permalink
Use the value of the progress through the keyframe interval when fall…
Browse files Browse the repository at this point in the history
…ing back to 50% flip behavior
  • Loading branch information
birtles committed Jul 5, 2017
1 parent 59a3142 commit 4b36f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/geckolib/glue.rs
Expand Up @@ -545,7 +545,7 @@ pub extern "C" fn Servo_AnimationCompose(raw_value_map: RawServoAnimationValueMa
};
if let Ok(value) = from_value.interpolate(to_value, position) {
value_map.insert(property, value);
} else if progress < 0.5 {
} else if position < 0.5 {
value_map.insert(property, from_value.clone());
} else {
value_map.insert(property, to_value.clone());
Expand Down

0 comments on commit 4b36f1e

Please sign in to comment.