| 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 04b488f2cf5755fc2d017c11b7f5758beeeb7fc9..a9556eb777c47805253d8305a795d53b6b5aa7cb 100644
|
| --- a/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| +++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| @@ -1604,6 +1604,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())
|
|
|