diff options
author | mmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-18 16:53:05 +0000 |
---|---|---|
committer | mmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-18 16:53:05 +0000 |
commit | 785318eec307942d4211619537106618a6679b79 (patch) | |
tree | 7044955501f9e88cf364f73a18debf9c6afd27fc | |
parent | 89892f43df8199c81c00a632e427abb5a3ec68fd (diff) | |
download | chromium_src-785318eec307942d4211619537106618a6679b79.zip chromium_src-785318eec307942d4211619537106618a6679b79.tar.gz chromium_src-785318eec307942d4211619537106618a6679b79.tar.bz2 |
Submit Issue 2965 patch by vega.james@gmail.com (jamessan)
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2362 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/common/slide_animation.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/common/slide_animation.cc b/chrome/common/slide_animation.cc index 67d4023..ffcb656 100644 --- a/chrome/common/slide_animation.cc +++ b/chrome/common/slide_animation.cc @@ -113,7 +113,7 @@ void SlideAnimation::AnimateToState(double state) { value_current_ = value_start_ + (value_end_ - value_start_) * state; // Implement snapping. - if (tween_type_ == EASE_OUT_SNAP && abs(value_current_ - value_end_) <= 0.06) + if (tween_type_ == EASE_OUT_SNAP && fabs(value_current_ - value_end_) <= 0.06) value_current_ = value_end_; // Correct for any overshoot (while state may be capped at 1.0, let's not @@ -123,4 +123,3 @@ void SlideAnimation::AnimateToState(double state) { value_current_ = value_end_; } } - |