[Webkit-unassigned] [Bug 254863] iOS 16.4 - Screen Orientation API Inconstancy

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 11 04:43:47 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=254863

--- Comment #12 from Klaus Reinfeld <mail at krpano.com> ---
> What’s the use case you had in mind for angle?

For gyroscope-based controls (for VR, pano-viewing, games) it is necessary to know the device/screen orientation.


The introducing of the ScreenOrientation API in iOS 16.4 therefore caused a problem with inverted screens - e.g. like here:

https://krpano.com/forum/wbb/index.php?page=Thread&threadID=19282

In krpano I was using the ScreenOrientation API first (used by Chrome and Firefox and Android) and the window.orientation as second/as fallback (used by Safari).

A quick search on GitHub seems to indicate that many other tools are either only using window.orientation or using window.orientation first and screen.orientation.angle as fallback. And that's also what I probably will implement now.

-- 
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/20230411/cec0c52b/attachment.htm>


More information about the webkit-unassigned mailing list