This repository was archived by the owner on Jan 19, 2022. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork31
INACTIVE -http://mzl.la/ghe-archive - INACTIVE -http://mzl.la/ghe-archive - Normalizes mouse/touch events into 'pointer' events.
License
NotificationsYou must be signed in to change notification settings
mozilla/pointer.js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Normalizes mouse/touch events into 'pointer' events.
This library is in the process of being re-written to support theW3C Pointer Events specification.
The following events are generated:
pointerdown
: based on mousedown/touchstartpointerup
: based on mouseup/touchendpointermove
: based on mousemove/touchmovepointerleave
: based on mouseout/touchleavepointerclick
: a 'fast click' event based on a sequence of the above events. Additional heuristics are applied to determine whether or not to generate apointerclick
.
pointer
events have the following custom properties:
maskedEvent
: the event that triggered the pointer event.touch
: boolean- is maskedEvent a touch event?mouse
: boolean- is maskedEvent a mouse event?x
: page-normalized x coordinate of the event.y
: page-normalized y coordinate of the event.
About
INACTIVE -http://mzl.la/ghe-archive - INACTIVE -http://mzl.la/ghe-archive - Normalizes mouse/touch events into 'pointer' events.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published