Phoenix LiveView held click binding

Hello guys, I’m wondering if it is possible to capture a held click with liveview. Basically I want to handle events of several elements whenever the cursor enters the element and the click is down, something like: onmousedown + onmouseenter/onmouseover. If it is possible, can you guys enlighten me, I’ve thinking about it and it seems like it is impossible using just bindings and I’ll have to rely only hooks.

The available events are documented here: https://hexdocs.pm/phoenix_live_view/bindings.html#content. I suspect you will need to use hooks for what you describe. To be honest, you probably want to handle that kind of event sequence client-side anyway due to latency between client & server - it would make for a pretty laggy user experience if mouseover events were being handled server-side.