[Webkit-unassigned] [Bug 234256] New: window.screenY is always 0 on mobile devices
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 13 11:15:27 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=234256
Bug ID: 234256
Summary: window.screenY is always 0 on mobile devices
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aideen at gmail.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
window.screenY (https://developer.mozilla.org/en-US/docs/Web/API/Window/screenY) is supposed to return the vertical distance, in CSS pixels, of the top border of the user's browser viewport to the top edge of the screen.
On mobile devices (Chrome 96 on Android and iOS + Safari on iOS) it always returns 0. Firefox (Gecko) on Android, however, returns a non-zero value (53 in my case) which is properly the height of the addressbar and other things between the top of the window and top of the screen.
PS. I can get this by subtracting event.clientY and event.screenY on touch/click events. But I want it on non-event contexts as well.
--
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/20211213/23642dd8/attachment.htm>
More information about the webkit-unassigned
mailing list