RESOLVED FIXED 233788
Implement CSS overscroll-behavior for iOS
https://bugs.webkit.org/show_bug.cgi?id=233788
Summary Implement CSS overscroll-behavior for iOS
Nikos Mouchtaris
Reported 2021-12-02 16:22:08 PST
Implement CSS overscroll-behavior for iOS
Attachments
Patch (3.47 KB, patch)
2021-12-02 16:47 PST, Nikos Mouchtaris
no flags
Patch (3.53 KB, patch)
2021-12-07 14:58 PST, Nikos Mouchtaris
no flags
Patch (3.53 KB, patch)
2021-12-07 16:49 PST, Nikos Mouchtaris
no flags
Patch (3.24 KB, patch)
2021-12-09 12:37 PST, Nikos Mouchtaris
no flags
Patch (3.24 KB, patch)
2021-12-09 14:57 PST, Nikos Mouchtaris
simon.fraser: review+
overscroll-behavior ios (3.19 KB, patch)
2021-12-09 15:48 PST, Nikos Mouchtaris
no flags
Patch (3.19 KB, patch)
2022-01-28 19:26 PST, Nikos Mouchtaris
no flags
Nikos Mouchtaris
Comment 1 2021-12-02 16:47:28 PST
Radar WebKit Bug Importer
Comment 2 2021-12-06 15:29:47 PST
Nikos Mouchtaris
Comment 3 2021-12-07 14:58:10 PST
Nikos Mouchtaris
Comment 4 2021-12-07 16:49:53 PST
Simon Fraser (smfr)
Comment 5 2021-12-09 11:16:14 PST
Comment on attachment 446255 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446255&action=review Why is there no layout test with this? > Source/WebKit/ChangeLog:10 > + to UIKit by Russell Ladd, to allow controlling of scroll chaining. I don't think this level of detail needs to be in the webkit changelog. > Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm:261 > + scrollView.bouncesHorizontally = params.horizontalOverscrollBehavior == OverscrollBehavior::None ? NO : YES; > + scrollView.bouncesVertically = scrollingStateNode.scrollableAreaParameters().verticalOverscrollBehavior == OverscrollBehavior::None ? NO : YES; > + scrollView._allowsParentToBeginHorizontally = scrollingStateNode.scrollableAreaParameters().horizontalOverscrollBehavior != OverscrollBehavior::Auto ? NO : YES; > + scrollView._allowsParentToBeginVertically = scrollingStateNode.scrollableAreaParameters().verticalOverscrollBehavior != OverscrollBehavior::Auto ? NO : YES; params vs scrollingStateNode.scrollableAreaParameters() ?
Nikos Mouchtaris
Comment 6 2021-12-09 12:37:46 PST
Nikos Mouchtaris
Comment 7 2021-12-09 14:57:24 PST
Darin Adler
Comment 8 2021-12-09 15:26:33 PST
Comment on attachment 446615 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446615&action=review > Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm:261 > + scrollView.bouncesHorizontally = params.horizontalOverscrollBehavior == OverscrollBehavior::None ? NO : YES; > + scrollView.bouncesVertically = params.verticalOverscrollBehavior == OverscrollBehavior::None ? NO : YES; > + scrollView._allowsParentToBeginHorizontally = params.horizontalOverscrollBehavior != OverscrollBehavior::Auto ? NO : YES; > + scrollView._allowsParentToBeginVertically = params.verticalOverscrollBehavior != OverscrollBehavior::Auto ? NO : YES; Since this is all Boolean logic, we could rewrite it to not use ? NO : YES so much, like this: scrollView.bouncesHorizontally = params.horizontalOverscrollBehavior != OverscrollBehavior::None; Fine to land what was reviewed, but I would prefer the more direct boolean style rather than one that implements "!" using "? NO : YES" syntax.
Nikos Mouchtaris
Comment 9 2021-12-09 15:48:41 PST
Created attachment 446625 [details] overscroll-behavior ios
Nikos Mouchtaris
Comment 10 2022-01-28 19:26:35 PST
EWS
Comment 11 2022-01-28 20:23:50 PST
Committed r288782 (246559@main): <https://commits.webkit.org/246559@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 450302 [details].
Nikos Mouchtaris
Comment 12 2022-02-17 17:32:10 PST
*** Bug 233787 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.