Discussion:
[elm-discuss] Announce: new package (elm-mouse-events), major update (elm-touch-events)
Matthieu Pizenberg
2017-05-08 08:51:08 UTC
Permalink
Hi all,

Since I often need coordinates of mouse events and was getting tired of
recoding the
json encoders / decoders for each project, I made a package for this:
mpizenberg/elm-mouse-events
<http://package.elm-lang.org/packages/mpizenberg/elm-mouse-events/latest>.

The main differences from mbr/elm-mouse-events
<http://package.elm-lang.org/packages/mbr/elm-mouse-events/latest> are:
- mbr's is better fit to handle mouse "behaviors" like click, double click,
... while I'm focused on the three main events (down, move, up).
- mbr's provides client, and target positions. I chose to provide client,
offset positions and the movement since those better fit my usage.
- I also provides the status of the alt, ctrl and shift keys.

In the meantime, after multiple months of usage of my elm-touch-events
package, and feedback from Ian (thanks) I rewrote completely the package.
The new API is much simpler than previously and more intuitive, I hope.

The main difference with knledg/touch-events
<http://package.elm-lang.org/packages/knledg/touch-events/latest> is that
mpizenberg/elm-touch-events
<http://package.elm-lang.org/packages/mpizenberg/elm-touch-events/latest>
supports multitouch interactions.

Don't hesitate to give me feedback on any of those two here, through slack
(user mattpiz) or github issues.
Thanks :)
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...