Bug 199658
| Summary: | calling event.preventDefault() on touchforcechange events prevents scrolling | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | alexreardon |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bdakin, graouts, thorton, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 12 | ||
| Hardware: | Unspecified | ||
| OS: | iOS 12 | ||
alexreardon
Calling `event.preventDefault()` on `touchforcechange` opts out of native scrolling. It also opts out of click events.
Example: https://codesandbox.io/s/touch-events-fspff
My understanding is that this is not correct. I would think that `event.preventDefault()` on a `touchforcechange` event should only prevent the default forcechange action from occurring, and not other actions
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
alexreardon
I do not have access to an old device right now, but I think this might be a recent change
alexreardon
Whoops - I meant old OS version
Radar WebKit Bug Importer
<rdar://problem/52894746>
Antoine Quint
Hi Alex. Could you specify what specific version of iOS this was found in? Thanks.
alexreardon
12.3.1