In js, when handling event with addEventListener('mousemove',handler)
, inside the handler
, we get access to the this
which holds reference to the dom element, which has important properties like offsetLeft
.
How do I decode the this
object in elm so i can get those properties?