A javascript library to emulate mouse/touch/pointer events, designed to help unit-test touch gestures.
http://leaflet.github.io/prosthetic-hand/demos/
http://leaflet.github.io/prosthetic-hand/api-docs.html
Run npm install prosthetic-hand
.
Files will be in node_modules/prosthetic-hand/dist/
Run npm install
, then npm start
, then point your favourite web browser at
http://localhost:4567/demos/
Please note that in order to emulate TouchEvent
s or PointerEvent
s, your
web browser must support (or polyfill) these events. Short version: use
Chrome when running code that emulates TouchEvents
, and IE11 or Edge when
emulating PointerEvent
s.
Read the Leaflet guidelines at https://github.com/Leaflet/Leaflet/blob/master/CONTRIBUTING.md
Whenever making a bugfix or a new feature, notify IvanSanchez so that a new version can be published to NPM.
- https://github.com/francejs/effroi (three years old)
- The simulator from http://hammerjs.github.io/ (too basic)
ivan@sanchezortega.es wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.