Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackc/browser_click_loss_test
Test for lost click events
https://github.com/jackc/browser_click_loss_test
Last synced: 24 days ago
JSON representation
Test for lost click events
- Host: GitHub
- URL: https://github.com/jackc/browser_click_loss_test
- Owner: jackc
- Created: 2013-08-30T19:49:42.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-30T19:50:10.000Z (about 11 years ago)
- Last Synced: 2023-03-10T19:08:32.646Z (over 1 year ago)
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Browser Click Loss Test
While working on a project that involved frequent DOM manipulation, I observed mouse click events being lost. When a click event handler is registered on a parent, and a click happens on a child, then the parent should normally receive the click event. However, if the child element is replaced at exactly the wrong time, the click event is lost.
This test demonstrates this issue. The problem is much worse on Chrome, but rapidly becomes visible on Firefox as the DOM replacement rate increases.