From 4b36f1e9c4986126d10b5adda9c0664a585274d4 Mon Sep 17 00:00:00 2001 From: Brian Birtles Date: Thu, 6 Jul 2017 06:38:57 +0900 Subject: [PATCH] Use the value of the progress through the keyframe interval when falling back to 50% flip behavior --- ports/geckolib/glue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 2b023147b02d..56b99babed7f 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -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());