I currently have a <div>
placed on top of my webpage that follows the mouse cursor. Occasionally, users are able to move the mouse quickly enough to enter the tracking <div>
. Additionally, this <div>
sometimes prevents users from clicking on elements located below or behind it.
What is the correct approach to visually displaying this <div>
without obstructing or affecting the underlying DOM, or any other elements? In particular, how can we prevent it from interfering with mouse events?