Changeset 239059 in webkit


Ignore:
Timestamp:
Dec 10, 2018 4:32:38 PM (5 years ago)
Author:
timothy_horton@apple.com
Message:

Animated scrolling on Google Maps scrolls the page in addition to moving the map
https://bugs.webkit.org/show_bug.cgi?id=192521
<rdar://problem/46382007>

Reviewed by Sam Weinig.

  • Platform/spi/ios/UIKitSPI.h:
  • UIProcess/ios/WKKeyboardScrollingAnimator.mm:

(-[WKKeyboardScrollViewAnimator rubberbandableDirections]):
Only do keyboard-based rubber-banding in directions that we can actually
scroll, not directions we can only finger-rubber-band in. This effectively
means keyboard scrolling will ignore "alwaysBounce{Vertical, Horizontal}".

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r239056 r239059  
     12018-12-10  Tim Horton  <timothy_horton@apple.com>
     2
     3        Animated scrolling on Google Maps scrolls the page in addition to moving the map
     4        https://bugs.webkit.org/show_bug.cgi?id=192521
     5        <rdar://problem/46382007>
     6
     7        Reviewed by Sam Weinig.
     8
     9        * Platform/spi/ios/UIKitSPI.h:
     10        * UIProcess/ios/WKKeyboardScrollingAnimator.mm:
     11        (-[WKKeyboardScrollViewAnimator rubberbandableDirections]):
     12        Only do keyboard-based rubber-banding in directions that we can actually
     13        scroll, not directions we can only finger-rubber-band in. This effectively
     14        means keyboard scrolling will ignore "alwaysBounce{Vertical, Horizontal}".
     15
    1162018-12-10  Commit Queue  <commit-queue@webkit.org>
    217
  • trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h

    r239026 r239059  
    10551055- (BOOL)_isScrollingToTop;
    10561056- (CGPoint)_animatedTargetOffset;
    1057 - (BOOL)_canScrollX;
    1058 - (BOOL)_canScrollY;
     1057- (BOOL)_canScrollWithoutBouncingX;
     1058- (BOOL)_canScrollWithoutBouncingY;
    10591059- (void)_setContentOffsetWithDecelerationAnimation:(CGPoint)contentOffset;
    10601060- (CGPoint)_adjustedContentOffsetForContentOffset:(CGPoint)contentOffset;
  • trunk/Source/WebKit/UIProcess/ios/WKKeyboardScrollingAnimator.mm

    r238834 r239059  
    679679    WebCore::RectEdges<bool> edges;
    680680
    681     edges.setTop(scrollView._canScrollY);
     681    edges.setTop(scrollView._canScrollWithoutBouncingY);
    682682    edges.setBottom(edges.top());
    683     edges.setLeft(scrollView._canScrollX);
     683    edges.setLeft(scrollView._canScrollWithoutBouncingX);
    684684    edges.setRight(edges.left());
    685685
Note: See TracChangeset for help on using the changeset viewer.