| Index: Source/core/platform/ScrollableArea.cpp
|
| diff --git a/Source/core/platform/ScrollableArea.cpp b/Source/core/platform/ScrollableArea.cpp
|
| index 0f02cf04bc2b3ff3a325ea00e11de5e29b5a5752..e9b61b322938f98a72470364ee7ed115be568800 100644
|
| --- a/Source/core/platform/ScrollableArea.cpp
|
| +++ b/Source/core/platform/ScrollableArea.cpp
|
| @@ -82,6 +82,21 @@ void ScrollableArea::setScrollOrigin(const IntPoint& origin)
|
| }
|
| }
|
|
|
| +bool ScrollableArea::touchScroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier)
|
| +{
|
| + // For a touch scroll, we don't need the scrollbars to exist (i.e. for an input text field)
|
| + ScrollbarOrientation orientation;
|
| + if (direction == ScrollUp || direction == ScrollDown)
|
| + orientation = VerticalScrollbar;
|
| + else
|
| + orientation = HorizontalScrollbar;
|
| +
|
| + if (direction == ScrollUp || direction == ScrollLeft)
|
| + multiplier = -multiplier;
|
| +
|
| + return scrollAnimator()->scroll(orientation, granularity, 1.0f, multiplier);
|
| +}
|
| +
|
| bool ScrollableArea::scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier)
|
| {
|
| ScrollbarOrientation orientation;
|
|
|