Class TouchEventDispatcher
Constructors
constructor
- new TouchEventDispatcher(_target, _radiusTap?, _radiusNotch?, _timeDouble?, _timerLong?): TouchEventDispatcher
Parameters
- _target: EventTarget
- _radiusTap: number = 5
- _radiusNotch: number = 50
- _timeDouble: number = 200
- _timerLong: number = 1000
Properties
radiusNotch
radiusNotch: number
radiusTap
radiusTap: number
Methods
activate
- activate(_on): void
Returns void
Dispatches CustomTouchEvents to the EventTarget given with the constructor. When using touch events, make sure to set
touch-action: none
in CSSAuthor
Jirka Dell'Oro-Friedl, HFU, 2022