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

Changeset 245795 in webkit


Ignore:
Timestamp:
May 27, 2019, 9:19:06 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

[Pointer Events] Test at pointerevents/ios/touch-action-none-in-overflow-scrolling-touch.html times out
https://bugs.webkit.org/show_bug.cgi?id=198275
<rdar://problem/50618496>

Patch by Antoine Quint <Antoine Quint> on 2019-05-27
Reviewed by Antti Koivisto.

Only WKCompositingView instances may have associated touch-action data, so we should filter out any hit-testing view
that isn't a WKCompositingView when finding the view that should hit-test when looking for touch-action information.

  • UIProcess/RemoteLayerTree/ios/RemoteLayerTreeViews.mm:

(WebKit::touchActionsForPoint):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r245790 r245795  
     12019-05-27  Antoine Quint  <graouts@apple.com>
     2
     3        [Pointer Events] Test at pointerevents/ios/touch-action-none-in-overflow-scrolling-touch.html times out
     4        https://bugs.webkit.org/show_bug.cgi?id=198275
     5        <rdar://problem/50618496>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        Only WKCompositingView instances may have associated touch-action data, so we should filter out any hit-testing view
     10        that isn't a WKCompositingView when finding the view that should hit-test when looking for touch-action information.
     11
     12        * UIProcess/RemoteLayerTree/ios/RemoteLayerTreeViews.mm:
     13        (WebKit::touchActionsForPoint):
     14
    1152019-05-27  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeViews.mm

    r244955 r245795  
    9999        return { WebCore::TouchAction::Auto };
    100100
    101     auto *hitView = viewsAtPoint.last();
     101    UIView *hitView;
     102    for (auto *view : WTF::makeReversedRange(viewsAtPoint)) {
     103        if ([view isKindOfClass:[WKCompositingView class]]) {
     104            hitView = view;
     105            break;
     106        }
     107    }
     108
     109    if (!hitView)
     110        return { WebCore::TouchAction::Auto };
    102111
    103112    CGPoint hitViewPoint = [hitView convertPoint:point fromView:rootView];
Note: See TracChangeset for help on using the changeset viewer.