Index: Source/core/page/DOMWindow.cpp |
diff --git a/Source/core/page/DOMWindow.cpp b/Source/core/page/DOMWindow.cpp |
index 852eb9f5eeda06e020b576c0f7e071e1d4baef57..31108bfeb3cddcfe809eef4ed81e4307160ead19 100644 |
--- a/Source/core/page/DOMWindow.cpp |
+++ b/Source/core/page/DOMWindow.cpp |
@@ -1406,7 +1406,7 @@ bool DOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr<Event |
if (Document* document = this->document()) { |
document->addListenerTypeIfNeeded(eventType); |
- if (eventType == eventNames().mousewheelEvent) |
+ if (eventType == eventNames().wheelEvent || eventType == eventNames().mousewheelEvent) |
document->didAddWheelEventHandler(); |
else if (eventNames().isTouchEventType(eventType)) |
document->didAddTouchEventHandler(document); |
@@ -1443,7 +1443,7 @@ bool DOMWindow::removeEventListener(const AtomicString& eventType, EventListener |
return false; |
if (Document* document = this->document()) { |
- if (eventType == eventNames().mousewheelEvent) |
+ if (eventType == eventNames().wheelEvent || eventType == eventNames().mousewheelEvent) |
document->didRemoveWheelEventHandler(); |
else if (eventNames().isTouchEventType(eventType)) |
document->didRemoveTouchEventHandler(document); |