Skip to content

Commit

Permalink
Submit Issue 2965 patch by vega.james@gmail.com (jamessan)
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2362 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
mmoss@google.com committed Sep 18, 2008
1 parent 89892f4 commit 785318e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chrome/common/slide_animation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -123,4 +123,3 @@ void SlideAnimation::AnimateToState(double state) {
value_current_ = value_end_;
}
}

0 comments on commit 785318e

Please sign in to comment.