@ff0000-ad-tech/ad-events
v1.2.2
Published
[![npm (tag)](https://img.shields.io/npm/v/@ff0000-ad-tech%2Fad-events.svg?style=flat-square)](https://www.npmjs.com/package/@ff0000-ad-tech%2Fad-events) [![GitHub issues](https://img.shields.io/github/issues/ff0000-ad-tech/ad-events.svg?style=flat-square
Downloads
21
Readme
RED Interactive Agency - Ad Technology
Events
A package of global utilities for handling global events, touch & mouse events, along with a universal ticker.
API
FrameRate
- .register(from, handler, fps)
- .unregister(from, handler, fps)
- .pause(arguments)
- .resume(arguments)
- .secondsAsFrames(sec)
Gesture
- .add/addEventListener(target, name, handler)
- .remove/removeEventListener(target, name, handler)
- .disable(target)
- .disableChildren(target)
- .enable(target)
- .enableChildren(target)
GestureEvent
- .OVER : string
- .OUT : string
- .MOVE : string
- .PRESS : string
- .RELEASE : string
- .CLICK : string
- .DRAG : string
- .DRAG_START : string
- .DRAG_STOP : string
- .SWIPE : string
- .Event(name, mouseGlobalX, mouseGlobalY, mouseLocalX, mouseLocalY, elementX, elementY, distanceX, distanceY, velocityX, velocityY)
- .stop(event)
UIEvent
- .ENABLED : string
- .RESIZE : string
- .SLIDER_UPDATE : string