Automate synthetic touch/pointer events
npm install prosthetic-handA JavaScript library to emulate mouse/touch/pointer events, designed to help unit-test touch gestures.
``bash`
npm install prosthetic-hand
`js
import Hand from 'prosthetic-hand';
const hand = new Hand();
const finger = h.growFinger('pointer', { pointerType: 'touch', pressure: 0.9 });
finger
.wait(500)
.moveTo(200, 250, 0)
.down()
.moveBy(100, 150, 2000)
.up();
`
For more information see the API documentation and demos.
Run npm install and npm start, then open the URL printed in the console in your preferred browser.
Run npm run build-docs and open the api-docs.html` file generated by it.
Read the Leaflet guidelines. Whenever making a bugfix or a new feature, notify IvanSanchez so that a new version can be published to NPM.
#### "THE BEER-WARE LICENSE":
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.