Open braebo opened 3 years ago
Hi @FractalHQ -- two quick ideas:
Have you tried the useCapture = true
option in addEventListener?
If you just want to hack it, you can try to set the internal _pointer
directly. Eg, space._pointer.to(x, y)
.
I love Svelte though haven't spent much time in it. Hope this makes sense.
Currently, when hovering over a button or link placed on top of the canvas, the mouse position tracking is lost.
I'm using svelte, and I have easy access to the mouse coords already:
These coords are never lost regarless of what UI element I'm hovering over, so ideally I would like to just use my
x
andy
instead of thebindMouse()
function.Unless there is a way to prevent the PT from losing the mouse position?
Thanks in advance!!