You might want to set the CSS position
of the element to fixed
. This will position the element relative to the screen, no matter where the element is defined and how scrolled the page is. This would be done by switching from:
.css({top:evt.pageY, left:evt.pageX})
To:
.css({position:'fixed', top:evt.screenY, left:evt.screenX})
Max Shawabkeh
2010-01-25 11:07:49