Bug 250792 - Undo/redo triggered with 3-finger gestures even after preventDefault() has been called on touch* events
Summary: Undo/redo triggered with 3-finger gestures even after preventDefault() has be...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-18 14:00 PST by Yuwei
Modified: 2023-01-25 14:01 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuwei 2023-01-18 14:00:47 PST
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.
Comment 1 Radar WebKit Bug Importer 2023-01-25 14:01:20 PST
<rdar://problem/104664887>