A TouchEvent testing tool for non-mobile devices. The script is a bookmarklet which fires touch events on elements based on mouse clicks and movements. It additionally supports multiplexing a mouse via shift which allows the user to add additional mouse points. These points can also be removed via ctrl. Unfortunately, browser supports is very limited and has only been tested in Firefox 10.
MDN Demo page: https://developer.mozilla.org/en-US/demos/detail/mock-toucher/launch
GitHub Demo page: http://twolfson.github.com/Mock-Toucher/
Bookmarklet: Mock Toucher
This script was written by Todd Wolfson for Mozilla Dev Derby February 2012 - Touch Events.
ย
- document.elementFromPoint
- CSS - pointer-events: none;
- WeakMap (only one that can easily be replaced)