[webkit-changes] [WebKit/WebKit] b40f80: WKWebView's scrollView.bounces=false is not working

Nikos Mouchtaris noreply at github.com
Fri Sep 16 21:09:11 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b40f80bcf189b67147eb79d9e0ca3c00dc8f8ea0
      https://github.com/WebKit/WebKit/commit/b40f80bcf189b67147eb79d9e0ca3c00dc8f8ea0
  Author: Nikolaos Mouchtaris <nmouchtaris at apple.com>
  Date:   2022-09-16 (Fri, 16 Sep 2022)

  Changed paths:
    M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm
    M Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm
    M Source/WebKit/UIProcess/ios/WKScrollView.h
    M Source/WebKit/UIProcess/ios/WKScrollView.mm
    M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
    A Tools/TestWebKitAPI/Tests/ios/ScrollViewBouncesTests.mm

  Log Message:
  -----------
  WKWebView's scrollView.bounces=false is not working
https://bugs.webkit.org/show_bug.cgi?id=243270
<rdar://96024524>

Reviewed by Simon Fraser.

Keep track if bounces is set by client to make sure it is not overwritten by overscroll behavior.
Currently setting bounces = True on a page with overscroll-behavior:none will result in the client
setting to be ignored.

* Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm:
(WebKit::ScrollingTreeScrollingNodeDelegateIOS::updateScrollViewForOverscrollBehavior):

Canonical link: https://commits.webkit.org/254582@main




More information about the webkit-changes mailing list