Wheel events don't latch to inner scrollable elements
[WebKit-https.git] / Source / WebCore / page / WheelEventDeltaTracker.h
index 1dc818b0b2bf15d42da17adc583b0bff660b7ae9..fb5f931416dcd01a067596ac34beb5606080b553 100644 (file)
@@ -51,6 +51,7 @@ public:
     void endTrackingDeltas();
 
     bool isTrackingDeltas() const { return m_isTrackingDeltas; }
+    bool isFirstWheelEvent() const { return m_recentWheelEventDeltas.size() <= 1; }
 
     void recordWheelEventDelta(const PlatformWheelEvent&);
     DominantScrollGestureDirection dominantScrollGestureDirection() const;