Index: Source/web/WebPluginContainerImpl.cpp |
diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp |
index 7057f128c57690eb3cbadea8dd5d837515d24557..91bb6469224ceae80ddcd7d977298f5372727d01 100644 |
--- a/Source/web/WebPluginContainerImpl.cpp |
+++ b/Source/web/WebPluginContainerImpl.cpp |
@@ -922,7 +922,7 @@ void WebPluginContainerImpl::handleTouchEvent(TouchEvent* event) |
} |
} |
-static inline bool gestureScrollHelper(ScrollbarGroup* scrollbarGroup, ScrollDirection positiveDirection, ScrollDirection negativeDirection, float delta) |
+static inline bool gestureScrollHelper(ScrollbarGroup* scrollbarGroup, ScrollDirectionPhysical positiveDirection, ScrollDirectionPhysical negativeDirection, float delta) |
{ |
if (!delta) |
return false; |
@@ -946,9 +946,9 @@ void WebPluginContainerImpl::handleGestureEvent(GestureEvent* event) |
if (webEvent.type == WebInputEvent::GestureScrollUpdate) { |
if (!m_scrollbarGroup) |
return; |
- if (gestureScrollHelper(m_scrollbarGroup.get(), ScrollLeft, ScrollRight, webEvent.data.scrollUpdate.deltaX)) |
+ if (gestureScrollHelper(m_scrollbarGroup.get(), ScrollPhysicalLeft, ScrollPhysicalRight, webEvent.data.scrollUpdate.deltaX)) |
event->setDefaultHandled(); |
- if (gestureScrollHelper(m_scrollbarGroup.get(), ScrollUp, ScrollDown, webEvent.data.scrollUpdate.deltaY)) |
+ if (gestureScrollHelper(m_scrollbarGroup.get(), ScrollPhysicalUp, ScrollPhysicalDown, webEvent.data.scrollUpdate.deltaY)) |
event->setDefaultHandled(); |
} |
// FIXME: Can a plugin change the cursor from a touch-event callback? |