fix scrolled document mouse position bug
This commit is contained in:
parent
5b3cb28613
commit
6f2e8c79c9
@ -23,7 +23,7 @@ L.DomUtil = {
|
||||
var top = 0,
|
||||
left = 0;
|
||||
do {
|
||||
top += (el.offsetTop - el.scrollTop) || 0;
|
||||
top += el.offsetTop || 0;
|
||||
left += el.offsetLeft || 0;
|
||||
el = el.offsetParent;
|
||||
} while (el);
|
||||
|
Loading…
Reference in New Issue
Block a user