Getting touchy - an introduction to touch and pointer events
summary
Browsers emulate mouse events for touch but this creates a 300ms delay and no continuous mousemove; tests show touchstart/touchmove/touchend fire immediately and click comes after ~300ms unless page disables zoom or uses workarounds. Practical fixes: listen to touchend carefully, use FastClick or set viewport to remove delay, or adopt pointer events plus the CSS touch-action to avoid preventDefault hacks. Polyfills (hand.js, Hammer) bridge gaps; IE10+ implements pointer events and Chrome/Firefox are following, iOS remains a notable outlier.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker background
- 1:27Touch events history and testing
- 7:44Problems with mouse event emulation
- 13:19300ms delay and double tap zoom
- 18:14Feature detection pitfalls
- 24:12Hybrid devices and input methods
- 32:21Mouse move tracking limitations
- 37:56Touch move and gesture basics
- 44:38Pointer events introduction
- 51:04Pointer events advantages
- 55:40Pointer events challenges
- 1:01:41Q&A and wrap-up
