ThinkAlexandria/elm-drag-locations/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Drag

Open sourced this snippet so I could hack on new idea on train laptop. TODO: fill in readme details.

type State interactionLocation
type Msg interactionLocation
= Start interactionLocation Position
| Moved interactionLocation Position
| End interactionLocation Position
| Click interactionLocation Position
onMouseDown : Options -> location -> Property (Msg location)
subscriptions : State interactionLocation -> Sub (Msg interactionLocation)
Msg interactionLocation
-> State interactionLocation
-> State interactionLocation
init : State interactionLocation
Msg interactionLocation
-> State interactionLocation
-> ( Int, Int )