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

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: Created 4 years, 12 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 316ab46c290824bdda94c157bfd1b715590322bb..9499e154d4ea94fdbde951067a1528db51b1d09a 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -570,7 +570,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