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

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 1557993002: Add scroll units in GestureEvents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout test on Mac Created 4 years, 11 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
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 652c7083354b8742e31f17c2ec36f0a5e908576a..e39211266c745b32a0f710f20a3d3f4b2bab16c7 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -571,7 +571,7 @@ void Element::nativeApplyScroll(ScrollState& scrollState)
// Handle the scrollingElement separately, as it scrolls the viewport.
if (this == document().scrollingElement()) {
FloatSize delta(deltaX, deltaY);
- if (document().frame()->applyScrollDelta(delta, scrollState.isBeginning()).didScroll()) {
+ if (document().frame()->applyScrollDelta(ScrollByPrecisePixel, delta, scrollState.isBeginning()).didScroll()) {
scrolled = true;
scrollState.consumeDeltaNative(scrollState.deltaX(), scrollState.deltaY());
}

Powered by Google App Engine
This is Rietveld 408576698