Hello.
I tried to get a kind of focus helper with the mouse when the pointer rolls over an item.
but i can get a good easing when the mouse are hover a element.
I do not know if I explain myself well, but I will try.
i use the pointerLock API.
when the mouse icon get hover a new elements, i want to help the mouse to move to center of element.
But without disturbing the control of the mouse.
the idea is to create a focus helper to center the pointer on the elements when the mouse has a contact with the outlines.
i try my best to make a codepen.
for active the pointer lock, just click inside the blue square.
if your move the mouse,
your will see that the behavior is a little messy when the mouse flies over a white square.
An idea on a good approach to create a similar system?
thank a lot for help.