[Webkit-unassigned] [Bug 191017] New: Provide a way for scrollToTop to apply to an element other than the body
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Oct 28 17:37:30 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=191017
Bug ID: 191017
Summary: Provide a way for scrollToTop to apply to an element
other than the body
Product: WebKit
Version: WebKit Nightly Build
Hardware: iPhone / iPad
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ericfs at google.com
Normally, a tap on the status bar causes a page to scroll to the top. This is consistent with UIScrollView behavior throughout iOS.
An native app can determine which scroll view scrolls on scroll-to-top gesture as controlled by scrollsToTop:
https://developer.apple.com/documentation/uikit/uiscrollview/1619421-scrollstotop
In WebKit, only the body can scroll to top. Sometimes the main content of the page is an other scrolling element. For example photos.google.com when signed in does not scroll the body. As a result, double tapping the status bar does not scroll the page.
It would be helpful to have a way to receive this event and handle it with JS or to specify which element should scroll instead of body.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181029/2b444261/attachment.html>
More information about the webkit-unassigned
mailing list