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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 703983002: Add preventPropagation bit to GestureScrollUpdate event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert some unnecessary whitespace change Created 6 years, 1 month 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
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index ffd19244abf24012cd775ab207b135820ee995a0..cf570ed7403d64918c236a195fe27ed68108fc9a 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -624,7 +624,8 @@ bool WebViewImpl::scrollBy(const WebFloatSize& delta, const WebFloatSize& veloci
} else {
WebGestureEvent syntheticGestureEvent;
- syntheticGestureEvent.type = WebInputEvent::GestureScrollUpdateWithoutPropagation;
+ syntheticGestureEvent.type = WebInputEvent::GestureScrollUpdate;
+ syntheticGestureEvent.data.scrollUpdate.preventPropagation = true;
syntheticGestureEvent.data.scrollUpdate.deltaX = delta.width;
syntheticGestureEvent.data.scrollUpdate.deltaY = delta.height;
syntheticGestureEvent.x = m_positionOnFlingStart.x;
@@ -1855,7 +1856,7 @@ void WebViewImpl::beginFrame(const WebBeginFrameArgs& frameTime)
PlatformGestureEvent endScrollEvent(PlatformEvent::GestureScrollEnd,
m_positionOnFlingStart, m_globalPositionOnFlingStart,
IntSize(), 0, false, false, false, false,
- 0, 0, 0, 0);
+ 0, 0, 0, 0, false);
mainFrameImpl()->frame()->eventHandler().handleGestureScrollEnd(endScrollEvent);
}

Powered by Google App Engine
This is Rietveld 408576698