Index: cc/animation/scroll_offset_animations_impl.cc |
diff --git a/cc/animation/scroll_offset_animations_impl.cc b/cc/animation/scroll_offset_animations_impl.cc |
index 71a96b429f5938cb0c9f20ff6bf95cf88d09c0f9..ccbf2dedfc5e33aaeb3f1390c94c5be74f914014 100644 |
--- a/cc/animation/scroll_offset_animations_impl.cc |
+++ b/cc/animation/scroll_offset_animations_impl.cc |
@@ -98,9 +98,11 @@ bool ScrollOffsetAnimationsImpl::ScrollAnimationUpdateTarget( |
// t = -delayed_by. |
trimmed -= delayed_by; |
+ double old_dur = curve->Duration().InMillisecondsF(); |
curve->UpdateTarget(trimmed.InSecondsF(), new_target); |
+ double new_dur = curve->Duration().InMillisecondsF(); |
- return true; |
+ return old_dur != new_dur; |
} |
void ScrollOffsetAnimationsImpl::ScrollAnimationApplyAdjustment( |