Hello!
Tell me, please, using Javascript to make it so that when a mouse hits a certain area, does the callback function work?
JQuery has mouseenter/leave , everything is fine, but it works when movement begins. And if the mouse does not move, it will not work.
For example, I hover the mouse over div block number 1. I pressed the delete button for this block number 1 and block No. 2 took its place — the coordinates of the mouse cursor did not change. The callback function will not work if you use mouseenter/leave , because there was no mouse movement, but if I start a movement, it will work.
The task is to ensure that the callback function works in any case, if the mouse cursor is over a specific div block, whether there is movement or not.
Tell me how this can be implemented?
Thank!