| 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 53f79f17c4adc0595dfb52e20d5efb9f1b326e54..2641196365dc0a6bc82318e49ddac52a4689f373 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -569,12 +569,14 @@ void Element::nativeApplyScroll(ScrollState& scrollState)
|
| LayoutBoxItem curBox = LayoutBoxItem(toLayoutBox(layoutObject())).enclosingBox();
|
| // FIXME: Native scrollers should only consume the scroll they
|
| // apply. See crbug.com/457765.
|
| - if (deltaX && curBox.scroll(ScrollLeft, ScrollByPrecisePixel, deltaX).didScroll) {
|
| + // TODO(bokan): The deltas here are the screen-space touchpoint deltas
|
| + // which are inverted relative to scrolling deltas.
|
| + if (deltaX && curBox.scroll(ScrollByPrecisePixel, FloatSize(-deltaX, 0)).didScrollX) {
|
| scrollState.consumeDeltaNative(scrollState.deltaX(), 0);
|
| scrolled = true;
|
| }
|
|
|
| - if (deltaY && curBox.scroll(ScrollUp, ScrollByPrecisePixel, deltaY).didScroll) {
|
| + if (deltaY && curBox.scroll(ScrollByPrecisePixel, FloatSize(0, -deltaY)).didScrollY) {
|
| scrollState.consumeDeltaNative(0, scrollState.deltaY());
|
| scrolled = true;
|
| }
|
|
|