Chromium Code Reviews| Index: third_party/WebKit/Source/core/input/TouchEventManager.cpp |
| diff --git a/third_party/WebKit/Source/core/input/TouchEventManager.cpp b/third_party/WebKit/Source/core/input/TouchEventManager.cpp |
| index 149cff36bc908842d65b6dc63fe73d9b538f3a66..57628ebfb6d3d4f06a88936e538cf67bd643ba7d 100644 |
| --- a/third_party/WebKit/Source/core/input/TouchEventManager.cpp |
| +++ b/third_party/WebKit/Source/core/input/TouchEventManager.cpp |
| @@ -126,10 +126,8 @@ WebInputEventResult TouchEventManager::dispatchTouchEvents( |
| // http://www.w3.org/TR/touch-events/#touchevent-interface for how these |
| // lists fit together. |
| - // Suppress all the touch moves in the slop region. |
| - if (IsTouchSequenceStart(event)) |
| - m_suppressingTouchmovesWithinSlop = true; |
| - |
| + // Suppress the touch moves in the slop region when |
|
mustaq
2017/02/17 15:24:01
Lines 129-130 are meaningless now. Please delete.
lanwei
2017/02/21 18:10:04
Done.
|
| + // m_suppressingTouchmovesWithinSlop is true. |
| if (event.type() == WebInputEvent::TouchEnd || |
| event.type() == WebInputEvent::TouchCancel || event.touchesLength > 1) { |
| m_suppressingTouchmovesWithinSlop = false; |
| @@ -292,6 +290,12 @@ WebInputEventResult TouchEventManager::dispatchTouchEvents( |
| } |
| } |
| + // Do not suppress any touchmoves if the touchstart is consumed. |
| + if (IsTouchSequenceStart(event) && |
| + eventResult == WebInputEventResult::NotHandled) { |
| + m_suppressingTouchmovesWithinSlop = true; |
| + } |
| + |
| return eventResult; |
| } |