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.

Reply via email to