~/talk

The Anatomy of a Click

Talkat ReactNext 2019 · on Tuesday, 2019-06-11· [react, web-platform]
slides:none on file

Browser clicks go through low‑level OS hooks rather than just dispatchEvent: automation tools like Puppeteer and Selenium drive input.dispatchMouseEvent which Chrome maps into platform calls such as CGPostMouseEvent, producing roughly ~40 events fired for a single click (pointer, enter/leave, mouse down/up, activate, etc.). React normalizes events with a one root listener and synthetic event layer (mouseenter is synthesized from mouseover/out), so firing a native mouseenter or click may not trigger the framework the way tests expect, causing cross‑OS flakiness.

AI-written summary · about

  1. 0:00Intro
  2. 0:47Framework Internals
  3. 1:24Events
  4. 1:40Automation
  5. 1:51JavaScript
  6. 2:25Why is this hard
  7. 2:37React
  8. 3:08Dom
  9. 6:24Click Handler
  10. 6:44Capture
  11. 7:29Bubble
  12. 8:11JQuery
  13. 8:43Event Plugins
  14. 10:05Why is this confusing
  15. 12:22Automation tools
  16. 12:35Chrome Debugging
  17. 12:48Chrome Dev Tools
  18. 13:20Mouse Events
  19. 13:33Chrome Driver
  20. 13:55Multi Monitor
  21. 14:10CG PostMouse
  22. 15:05Browsers
  23. 16:29Testing
  24. 17:47Recap
  25. 18:56Conclusion
  26. 19:52Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.