onMouseMoveCustom : Signal.Address (Maybe (Int, Int)) -> Html.Attribute
onMouseMoveCustom address = Events.on "mousemove" offset (Signal.message address)
offset : Json.Decoder (Maybe (Int, Int))
offset = Json.map Just
<| Json.tuple2 (,) ("offsetX" := Json.int) ("offsetY" := Json.int)
Object {ctor: "Err", _0: "Converting circular structure to JSON"}
Perhaps you could send the ID of the element instead of the element itself?
--
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.
onMouseMoveCustom : Signal.Address (Maybe (Int, Int)) -> Html.Attribute
onMouseMoveCustom address = Events.on "mousemove" offset (Signal.message address)
offset : Json.Decoder (Maybe (Int, Int))
offset = Json.map Just
<| Json.tuple2 (,) ("offsetX" := Json.int) ("offsetY" := Json.int)
--