Bug 159763
Summary: | click events not fired depending on DOM changes? | ||
---|---|---|---|
Product: | WebKit | Reporter: | Rick Byers <rbyers> |
Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | benjamin, cdumez, dino, graouts, rniwa, wenson_hsieh |
Priority: | P2 | ||
Version: | Safari 9 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 9.3 |
Rick Byers
According to https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW6 I should see click events whenever tapping inside an element with a click listener. I swear this used to work reliably but now I'm seeing something I'm having trouble explaining:
Repro:
- Visit http://rbyers.net/eventTest.html
- Ensure only ' mouse' is enabled in the configuration
- Tap a few times - in the log or on the squares on the right
- Most taps generate mousemove/mousedown/mouseup/click events
- Now enable 'touch' from the list of events to monitor and tap again
- Now you only get the 'mousemove' events - no down/up/click. This occurs no matter where you tap (even outside the log whose DOM content is changing).
Simpler repro that demonstrates something similar:
- https://output.jsbin.com/nirihe
- tap in any of the different clickable areas above the log box
- notice you consistently get 'click' events
- now tap inside the log box
- get only touchstart/mousedown - even though you still see the tap highlight showing that the clickable target is being activated.
I don't remember seeing this before - any chance something changed in iOS 9? I'll install iOS 10 beta to try that.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |