[Webkit-unassigned] [Bug 171105] Normalizing touch events mouse compatibility event bubbling

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 4 06:24:52 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=171105

--- Comment #5 from Patrick H. Lauke <redux at splintered.co.uk> ---
Simon, that test case works because you already have a click handler attached to the elements. The issue does not manifest itself when you have:

* target element is a link or form control
* target or any ancestor (up to but not including body) has explicit mouse or click handler (even if only empty function)
* target or any ancestor (up to and including document) has cursor:pointer

https://patrickhlauke.github.io/getting-touchy-presentation/#221

The problem with bubbling/delegation happens when you don't have any of the above. For instance, user taps on a <div> but listens for click on the body (as many event delegation frameworks do).

As an example, see https://patrickhlauke.github.io/touch/bubbling/div.html (attached as single file testcase here too)

-- 
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/20180104/524e50f4/attachment.html>


More information about the webkit-unassigned mailing list