mpizenberg/elm-touch-events/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Touch

This module exposes types and constants common to both single and multi touch interactions.

= TouchStart
| TouchMove
| TouchEnd
| TouchCancel

The different types of touch events.

type alias Touch =
{ clientX : Float
, clientY : Float
}

A simple type alias for the clientX and clientY properties of a JavaScript Touch object.

preventAndStop : Options

Options to prevent default and stop propagation of an event.

You might want this options to prevent from emulating mouse events if you are developing an interface for both mobile and regular platforms.

You might also need this to prevent from scrolling in a touch interaction.