ThinkAlexandria / elm-drag-locations / Drag


type State interactionLocation


type Msg interactionLocation
    = Start interactionLocation Position
    | Moved interactionLocation Position
    | End interactionLocation Position
    | Click interactionLocation Position

onMouseDownWithOptions : { stopPropagation : Basics.Bool, preventDefault : Basics.Bool } -> location -> VirtualDom.Attribute (Msg location)

subscriptions : State interactionLocation -> Platform.Sub.Sub (Msg interactionLocation)

update : Msg interactionLocation -> State interactionLocation -> State interactionLocation

init : State interactionLocation

delta : Msg interactionLocation -> State interactionLocation -> ( Basics.Int, Basics.Int )

getLocation : State interactionLocation -> Maybe interactionLocation