summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/WheelEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/WheelEvent.cpp')
-rwxr-xr-x[-rw-r--r--]Source/WebCore/dom/WheelEvent.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/WebCore/dom/WheelEvent.cpp b/Source/WebCore/dom/WheelEvent.cpp
index c31112c79..e76c33ace 100644..100755
--- a/Source/WebCore/dom/WheelEvent.cpp
+++ b/Source/WebCore/dom/WheelEvent.cpp
@@ -42,12 +42,13 @@ WheelEvent::WheelEvent(const FloatPoint& wheelTicks, const FloatPoint& rawDelta,
const IntPoint& screenLocation, const IntPoint& pageLocation,
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey,
bool directionInvertedFromDevice)
- : MouseRelatedEvent(eventNames().mousewheelEvent,
- true, true, view, 0, screenLocation, pageLocation,
+ : MouseEvent(eventNames().mousewheelEvent,
+ true, true, view, 0, screenLocation.x(), screenLocation.y(),
+ pageLocation.x(), pageLocation.y(),
#if ENABLE(POINTER_LOCK)
- IntPoint(0, 0),
+ 0, 0,
#endif
- ctrlKey, altKey, shiftKey, metaKey)
+ ctrlKey, altKey, shiftKey, metaKey, 0, 0, 0, false)
, m_wheelDelta(IntPoint(static_cast<int>(wheelTicks.x() * tickMultiplier), static_cast<int>(wheelTicks.y() * tickMultiplier)))
, m_rawDelta(roundedIntPoint(rawDelta))
, m_granularity(granularity)
@@ -93,6 +94,11 @@ const AtomicString& WheelEvent::interfaceName() const
return eventNames().interfaceForWheelEvent;
}
+bool WheelEvent::isMouseEvent() const
+{
+ return false;
+}
+
inline static WheelEvent::Granularity granularity(const PlatformWheelEvent& event)
{
return event.granularity() == ScrollByPageWheelEvent ? WheelEvent::Page : WheelEvent::Pixel;