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

Shameless plug: Check out @elixirstatus' other community project:

Credo, a new static code analysis tool that acts as a code linter, but also focusses on teaching coding practices and code consistency.