This module exposes types and functions to deal with multitouch interactions.
An multitouch event handler.
import Touch as T
import MultiTouch as MT
type Msg
= MultiTouchMsg T.TouchEvent MT.MultiTouch
view model =
H.div [ ST.onMultiTouch T.TouchStart T.preventAndStop <| MultiTouchMsg T.TouchStart ] []
Type alias for a multitouch event.
The properties
touches,targetTouchesandchangedTouchesare represented by dictionaries in which the keys are the unique Int identifier of the Touch interactions.To have more info about these properties and how to use them, please refer to the [Mozilla documentation] (https://developer.mozilla.org/en-US/docs/Web/Events/touchstart)