Closed
Bug 1298825
Opened 8 years ago
Closed 5 years ago
preventDefault doesn't work on simulated touch events
Categories
(DevTools :: Responsive Design Mode, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ossman, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [rdm-reserve])
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
Build ID: 20160606100313
Steps to reproduce:
1. Enabled responsive design mode
2. Enabled "simulate touch events"
3. Clicked an element that had this handler for both 'mousedown' and 'touchstart':
handler: function(e) {
e.preventDefault();
}
Actual results:
The handler fired twice, once for 'touchstart' and once for 'mousedown'.
Expected results:
The handler should just have fired once, for 'touchstart'.
Reporter | ||
Comment 1•8 years ago
|
||
See also bug 977226 which seems to have fixed this for real touch events (as opposed to simulated ones).
jryans, could you NI someone who is in charge of the API about simulating touch events.
Depends on: 1285566
Flags: needinfo?(jryans)
I agree this appears to be missing from the current touch simulation support. We could either extend the existing simulator (some JS that manually fires events) or resolve this via bug 1282089 which would use the platform's native touch support more directly.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jryans)
Priority: -- → P3
Blocks: rdm-touch
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Whiteboard: [rdm-mvp]
Updated•6 years ago
|
Priority: P3 → P2
Updated•6 years ago
|
Priority: P2 → P3
Whiteboard: [rdm-mvp] → [rdm-reserve]
Comment 4•5 years ago
|
||
Fixed by Bug 1623941
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•