remove page Offsets to fix probing in scrolled browser window

This commit is contained in:
BigEd 2010-09-19 18:27:48 +00:00
parent ef88fdeb90
commit efddb36049
1 changed files with 2 additions and 6 deletions

View File

@ -335,15 +335,11 @@ function setChipStyle(props){
function localx(el, gx){
var lx = gx+window.pageXOffset;
lx-=el.getBoundingClientRect().left
return lx;
return gx-el.getBoundingClientRect().left;
}
function localy(el, gy){
var ly = gy+window.pageYOffset;
ly-=el.getBoundingClientRect().top
return ly;
return gy-el.getBoundingClientRect().top;
}
function setStatus(){