Discussion:
[announcement] new package for pointer events in elm
(too old to reply)
Matthieu Pizenberg
2017-10-17 16:55:47 UTC
Permalink
Hi everyone,

Along my different elm projects I've been using a lot of mouse and touch
events. I recently got tired of duplicating the code for both so here is my
take on unified pointer events in elm.

mpizenberg/elm-pointer-events [1]

Since PointerEvent inherits from MouseEvent, this is built on top of
mpizenberg/elm-mouse-events [2]. The pointer API is not supported on all
recent browsers, so I also provide a minimalist polyfill [3] compatible
with elm decoders (contrary to JQuery/PEP).

Enjoy!

[1] https://github.com/mpizenberg/elm-pointer-events
[2] https://github.com/mpizenberg/elm-mouse-events
[3] https://github.com/mpizenberg/elm-pep
--
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...