0.0.10 • Published 5 years ago

tiptaptop v0.0.10

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Ev

PropDescription
deltaXMovement of the X axis.
deltaYMovement of the Y axis.
deltaTimeTotal time in ms since the first input.
distanceDistance moved.
velocityXVelocity on the X axis, in px/ms.
velocityYVelocity on the Y axis, in px/ms
velocityHighest velocityX/Y value.
directionDirection moved. Matches the DIRECTION constants.
offsetDirectionDirection moved from it’s starting point. Matches the DIRECTION constants.
srcEventSource event object, type TouchEvent, MouseEvent or PointerEvent.
targetTarget that received the event.
pointerTypePrimary pointer type, could be touch, mouse, pen or kinect.
isFirsttrue when the first input.
isFinaltrue when the final (last) input.
pointersArray with all pointers, including the ended pointers (touchend, mouseup).
changedPointersArray with all new/moved/lost pointers.
preventDefaultReference to the srcEvent.preventDefault() method. Only for experts!

CONSTs

ConstValue
DIRECTION_NONE1
DIRECTION_LEFT2
DIRECTION_RIGHT4
DIRECTION_UP8
DIRECTION_DOWN16
DIRECTION_HORIZONTAL6
DIRECTION_VERTICAL24
DIRECTION_ALL30
0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago