Try using event.clientY
that should always return the correct value regardless of scrolling
https://developer.mozilla.org/en-US/docs/DOM/event.clientY
Try using event.clientY
that should always return the correct value regardless of scrolling
https://developer.mozilla.org/en-US/docs/DOM/event.clientY