README
pixi-event-resolver
Module which would return the correct event name depending on the browser ( mobile / desktop );
Table of Contents
Installation
npm install pixi-event-resolver
Usage
import eventResolver from "pixi-event-resolver";
eventResolver.resolve("click"); // will return click or tap depending on the device
eventResolver.resolve("mousedown"); // will return mousedown or touchstart depending on the device
eventResolver.resolve("mouseup"); // will return mouseup or touchend depending on the device
eventResolver.resolve("mouseupoutside"); // will return mouseupoutside or touchendoutside depending on the device
eventResolver.resolve("mousemove"); // will return mousemove or touchmove depending on the device
Support
Please open an issue for support.
Contributing
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.