| Index: third_party/WebKit/Source/core/input/EventHandler.cpp
|
| diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| index a91217a5b18caa6ea2731fa91ff411478eaf9089..fd6f16e708589071f3fe7782296be36993cb16ab 100644
|
| --- a/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| +++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| @@ -1593,6 +1593,14 @@ bool EventHandler::slideFocusOnShadowHostIfNecessary(const Element& element)
|
|
|
| WebInputEventResult EventHandler::handleWheelEvent(const PlatformWheelEvent& event)
|
| {
|
| +#if OS(MACOSX)
|
| + // Filter Mac OS specific phases, usually with a zero-delta.
|
| + // https://crbug.com/553732
|
| + // TODO(chongz): EventSender sends events with |PlatformWheelEventPhaseNone|, but it shouldn't.
|
| + const int kPlatformWheelEventPhaseNoEventMask = PlatformWheelEventPhaseEnded | PlatformWheelEventPhaseCancelled | PlatformWheelEventPhaseMayBegin;
|
| + if ((event.phase() & kPlatformWheelEventPhaseNoEventMask) || (event.momentumPhase() & kPlatformWheelEventPhaseNoEventMask))
|
| + return WebInputEventResult::NotHandled;
|
| +#endif
|
| Document* doc = m_frame->document();
|
|
|
| if (doc->layoutViewItem().isNull())
|
|
|