[Webkit-unassigned] [Bug 281430] click events invoked with keyboard have fictitious screenX, screenY, clientX, clientY values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 18 09:50:17 PST 2024


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

marksteward at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marksteward at gmail.com

--- Comment #8 from marksteward at gmail.com ---
> Gecko and Chromium's solution is advantageous

But as you've demonstrated in your blog, it also allows people to write code that relies on it, and even the fixed code will have a pixel with incorrect behaviour at (0, 0). It's probably better to rely mousedown or keydown handlers for animations and unusual focus behaviour, and limit click handlers to stuff that's input agnostic.

Or if you really need a hack, UIEvent.detail seems to have good support, so perhaps you could check if this exists on the event and is set to 0.

-- 
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/20241118/070ceae3/attachment.htm>


More information about the webkit-unassigned mailing list