Covid - Epidemic Mitigation in Elixir COVID-19 announcements on Ecuador with Elixir and Absinthe.

LiveView click event and offsetX, offsetY coordinates

LiveView click event and offsetX, offsetY coordinates

I made a tiny tiny contribution to the Phoenix LiveView project (just two lines of code available from release 0.5.0), which adds offsetX and offsetY coordinates to the click event metadata.

These coordinates are useful to know exactly where the click happened inside the element. In this article I show how to use phx-click and offsetX,Y coordinates, letting users interact with SVG elements

ElixirWeekly: The Elixir Community Newsletter, covering community news you easily miss, shared on ElixirStatus and the web, in one email every Thursday.