Wow, this is really great, Frederick! Properly deals with resizing and scrolling, and all in Pure Elm! I didn't think this was possible! Thanks for sharing this!
On Friday, May 20, 2016 at 9:51:16 AM UTC-7, Frederick Yankowski wrote: > > With a custom event decoder you can get relative mouse positions, by > grabbing the offsetX and offsetY fields of the event. > > > https://github.com/fredcy/elm-svg-mouse-offset/blob/55448a491994d11b9e1b5d8abbe0de7a2188b959/Main.elm#L9 > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
