mpizenberg/elm-touch-events/3.0.2

NOTE: this package is not compatible with Elm 0.19.1

SingleTouch

This module exposes functions to deal with single touch interactions.

The coordinates provided are the ones of the first touch in the "changedTouches" list. As a consequence, it may behave inconsistently in case of an accidental multitouch usage. In case of a need for consistency with potential unwanted multitouch interactions, you might want to use the MultiTouch module which provides finer grained control over the processing of the touch event.

onStart : (Coordinates -> msg) -> Attribute msg

Triggered on a "touchstart" event.

onMove : (Coordinates -> msg) -> Attribute msg

Triggered on a "touchmove" event.

onEnd : (Coordinates -> msg) -> Attribute msg

Triggered on a "touchend" event.

onCancel : (Coordinates -> msg) -> Attribute msg

Triggered on a "touchcancel" event.