⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267527 in webkit


Ignore:
Timestamp:
Sep 24, 2020, 5:52:35 AM (6 years ago)
Author:
cathiechen
Message:

Root node with stateless wheel event isn't always scrollable
https://bugs.webkit.org/show_bug.cgi?id=216875

Reviewed by Simon Fraser.

Root nodes are not always capable of handling wheel event. When it is a stateless wheel event which
does not trigger rubber-band, we should check the scroll content of the root node.

  • page/scrolling/ScrollingTreeScrollingNode.cpp:

(WebCore::ScrollingTreeScrollingNode::canHandleWheelEvent const): Stateless wheel event
doesn't trigger rubber-band, should check the scroll content.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267526 r267527  
     12020-09-24  Cathie Chen  <cathiechen@igalia.com>
     2
     3        Root node with stateless wheel event isn't always scrollable
     4        https://bugs.webkit.org/show_bug.cgi?id=216875
     5
     6        Reviewed by Simon Fraser.
     7
     8        Root nodes are not always capable of handling wheel event. When it is a stateless wheel event which
     9        does not trigger rubber-band, we should check the scroll content of the root node.
     10
     11        * page/scrolling/ScrollingTreeScrollingNode.cpp:
     12        (WebCore::ScrollingTreeScrollingNode::canHandleWheelEvent const): Stateless wheel event
     13        doesn't trigger rubber-band, should check the scroll content.
     14
    1152020-09-24  Commit Queue  <commit-queue@webkit.org>
    216
  • trunk/Source/WebCore/page/scrolling/ScrollingTreeScrollingNode.cpp

    r267002 r267527  
    145145
    146146    // We always rubber-band the latched node, or the root node.
    147     if (isLatchedNode() || isRootNode())
     147    // The stateless wheel event doesn't trigger rubber-band.
     148    if (isLatchedNode() || (isRootNode() && !wheelEvent.isNonGestureEvent()))
    148149        return true;
    149    
     150
    150151    return eventCanScrollContents(wheelEvent);
    151152}
Note: See TracChangeset for help on using the changeset viewer.