Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Unified Diff: third_party/WebKit/Source/core/input/ScrollManager.cpp

Issue 2340533003: Fix issue with non-touchpad scrolling event over resizer: should not cause an area resize. (Closed)
Patch Set: Codereview update Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-over-resizer.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/ScrollManager.cpp
diff --git a/third_party/WebKit/Source/core/input/ScrollManager.cpp b/third_party/WebKit/Source/core/input/ScrollManager.cpp
index a10cea7fb3b7ce8bcd106cfe332ba7f95b36513a..d0d2bb9dcbc7db5ce681f1974a7ce32c1c9f3516 100644
--- a/third_party/WebKit/Source/core/input/ScrollManager.cpp
+++ b/third_party/WebKit/Source/core/input/ScrollManager.cpp
@@ -433,6 +433,9 @@ bool ScrollManager::isScrollbarHandlingGestures() const
bool ScrollManager::handleScrollGestureOnResizer(Node* eventTarget, const PlatformGestureEvent& gestureEvent)
{
+ if (gestureEvent.source() != PlatformGestureSourceTouchscreen)
+ return false;
+
if (gestureEvent.type() == PlatformEvent::GestureScrollBegin) {
PaintLayer* layer = eventTarget->layoutObject() ? eventTarget->layoutObject()->enclosingLayer() : nullptr;
IntPoint p = m_frame->view()->rootFrameToContents(gestureEvent.position());
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-over-resizer.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698