1.3.0 • Published 5 years ago

pixi-event-resolver v1.3.0

Weekly downloads
13
License
MIT
Repository
github
Last release
5 years ago

Build Status code style: prettier

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.