Simplify checking of whether we should rubberband horizontally
Created attachment 124180 [details] Patch
Comment on attachment 124180 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=124180&action=review > Source/WebCore/platform/mac/ScrollAnimatorMac.mm:923 > - if (m_scrollableArea->isHorizontalScrollerPinnedToMinimumPosition() && > - isScrollingLeftAndShouldNotRubberBand(wheelEvent, m_scrollableArea)) > - return false; > - > - if (m_scrollableArea->isHorizontalScrollerPinnedToMaximumPosition() && > - isScrollingRightAndShouldNotRubberBand(wheelEvent, m_scrollableArea)) > + if (pinnedInDirection(-wheelEvent.deltaX(), 0) && > + !shouldRubberBandInHorizontalDirection(wheelEvent, m_scrollableArea)) Do we still need isHorizontalScrollerPinnedToMinimumPosition/isHorizontalScrollerPinnedToMaximumPosition? pinnedInDirection is a confusing function. It takes two deltas, not a direction! What does it all MEAN?
Committed r106046: <http://trac.webkit.org/changeset/106046>