[Webkit-unassigned] [Bug 250792] New: Undo/redo triggered when preventDefault() has been called on touch* events
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 18 14:00:47 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=250792
Bug ID: 250792
Summary: Undo/redo triggered when preventDefault() has been
called on touch* events
Product: WebKit
Version: Safari 16
Hardware: iPhone / iPad
OS: iOS 16
Status: NEW
Severity: Normal
Priority: P2
Component: UI Events
Assignee: webkit-unassigned at lists.webkit.org
Reporter: yuweih at google.com
Repro step:
1. Go to the demo page: https://jsfiddle.net/s0cft7v1/1/show
2. Type something on the input box
2. Do three-finger swipes and observe
Expected:
Nothing happens.
Actual:
The undo/redo tooltip shows up. The text is changing in the input box
---
The demo page (edit mode: https://jsfiddle.net/s0cft7v1/1) simply has an input box and a big div below. The div has these event handlers:
```
el.addEventListener('touchstart', (ev) => {ev.preventDefault();});
el.addEventListener('touchmove', (ev) => {ev.preventDefault();});
el.addEventListener('touchend', (ev) => {ev.preventDefault();});
```
Given that this does prevent the browser from zooming the page when the user performs two-finger zoom gestures, I would also expect that the browser wouldn't handle three-finger gestures.
--
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/20230118/08e2aac1/attachment.htm>
More information about the webkit-unassigned
mailing list