| Index: Source/core/platform/ScrollAnimator.cpp
|
| diff --git a/Source/core/platform/ScrollAnimator.cpp b/Source/core/platform/ScrollAnimator.cpp
|
| index 0faa0c046e939e7aabe1d7bde49656b2a2b0616d..dc0c7f3a29422d3883d60ce45aa8c8dfb230d90c 100644
|
| --- a/Source/core/platform/ScrollAnimator.cpp
|
| +++ b/Source/core/platform/ScrollAnimator.cpp
|
| @@ -55,7 +55,7 @@ ScrollAnimator::~ScrollAnimator()
|
| bool ScrollAnimator::scroll(ScrollbarOrientation orientation, ScrollGranularity, float step, float multiplier)
|
| {
|
| float* currentPos = (orientation == HorizontalScrollbar) ? &m_currentPosX : &m_currentPosY;
|
| - float newPos = std::max(std::min(*currentPos + (step * multiplier), static_cast<float>(m_scrollableArea->scrollSize(orientation))), 0.0f);
|
| + float newPos = m_scrollableArea->clampScrollPosition(orientation, *currentPos + step * multiplier);
|
| float delta = *currentPos - newPos;
|
| if (*currentPos == newPos)
|
| return false;
|
|
|