This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Drag library designed for many different interaction locations
version 2.0.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 2.0.0
Committed At 2018-05-17 01:41:34 UTC
elm-lang/virtual-dom 2.0.4 <= v < 3.0.0 2.0.4
elm-lang/mouse 1.0.1 <= v < 2.0.0 1.0.1
elm-lang/html 2.0.0 <= v < 3.0.0 2.0.0
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1



This library is designed for when you want to have many different draggable elements on the same screen.

You are responsible for setting up handlers for the mousedown event on each element you want to be draggable. For each handler you specify the interaction location using a union type you define. The library handles the subscriptions to the subsequent mousemoved and mouseup events, giving to you an easy to pattern match report of movements, end of drag, and clicks (for when there was no mouse movement).

TODO: add more complete readme details.