popup.js
popup.js copied to clipboard
$(document).scrollLeft() and $(document).scrollTop() cause target popup to mis-locate on screen
in the function: popupFunct.readMousePos the x and y have the scroll added to them. This causes the target popup to locate away from the current mouse position when the window is scrolled right or down.
Removing the scroll seems to resolve. What was the original reason for adding the scroll to the mouse position?
line 66:
//x = $(document).scrollLeft() + e.pageX;
//y = $(document).scrollTop() + e.pageY;
x = e.pageX;
y = e.pageY;
Thanks