fix scrolled document bug

This commit is contained in:
Mourner 2011-03-24 16:53:27 +02:00
parent 1831051543
commit 90f49fd235

View File

@ -23,7 +23,7 @@ L.DomUtil = {
var top = 0, var top = 0,
left = 0; left = 0;
do { do {
top += (el.offsetTop - el.scrollTop) || 0; top += el.offsetTop || 0;
left += el.offsetLeft || 0; left += el.offsetLeft || 0;
el = el.offsetParent; el = el.offsetParent;
} while (el); } while (el);