ThinkAlexandria/elm-drag-locations/3.1.0

Drag

type State interactionLocation
type Msg interactionLocation
= Start interactionLocation Position
| Moved interactionLocation Position
| End interactionLocation Position
| Click interactionLocation Position
{ stopPropagation : Bool
, preventDefault : Bool
}
-> location
-> Attribute (Msg location)
subscriptions : State interactionLocation -> Sub (Msg interactionLocation)
Msg interactionLocation
-> State interactionLocation
-> State interactionLocation
init : State interactionLocation
Msg interactionLocation
-> State interactionLocation
-> ( Int, Int )
getLocation : State interactionLocation -> Maybe interactionLocation