popup.js icon indicating copy to clipboard operation
popup.js copied to clipboard

$(document).scrollLeft() and $(document).scrollTop() cause target popup to mis-locate on screen

Open andersonk17474 opened this issue 11 years ago • 0 comments

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

andersonk17474 avatar Jun 14 '13 15:06 andersonk17474