Try to avoid occasional error messages.
This commit is contained in:
parent
880d80be67
commit
d45d73eecf
|
@ -62,8 +62,8 @@
|
|||
|
||||
function getViewportOffset() {
|
||||
return {
|
||||
top: w.pageYOffset || documentElement.scrollTop || d.body.scrollTop,
|
||||
left: w.pageXOffset || documentElement.scrollLeft || d.body.scrollLeft
|
||||
top: w.pageYOffset || documentElement.scrollTop || (d.body?d.body.scrollTop:0),
|
||||
left: w.pageXOffset || documentElement.scrollLeft || (d.body?d.body.scrollLeft:0)
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue