| Summary: | Prevent requestFullscreen() from closing when touch events are preventDefault'ed | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jesper van den Ende <jespertheend> | ||||
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | alex, andj2223, augus.dupin, eric.carlson, jer.noble, jespertheend, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari Technology Preview | ||||||
| Hardware: | iPhone / iPad | ||||||
| OS: | iOS 17 | ||||||
| Attachments: |
|
||||||
|
Description
Jesper van den Ende
2023-11-04 13:53:48 PDT
It sounds like the behavior you're reproducing here is that `preventDefault()` doesn't block the "drag to dismiss" behavior which allows users to exit fullscreen mode. This is intentional, and is a anti-phishing / security feature. The site cannot block the user from exiting fullscreen, either via drag-to-dismiss, the `esc` key, or the persistent close button. @Jer Noble: Safari/Webkit's implementation of the Fullscreen API ensures that its primary use case, i.e. games, is effectively unusable. Most mobile web games require swipe actions of some kind, and both native iOS games and web games on Android fully support this functionality. Webkit needs a solution to the security issues that still enables developers to build games. drag-to-dismiss makes many forms of non-game applications effectively unusable in full screen as well: Drawing apps that use dragging gestures to make pen/brush strokes 3d viewing applications that use dragging gestures to navigate the camera / viewpoint Map applications that use dragging gestures to move the map Etc. I sincerely hope that this is rectified before the release of iOS 17.2. |