#105 coolor picker slider issue fixed
parent
2f475ed9c0
commit
51d817f7a9
|
@ -10,7 +10,8 @@ export function findPos(obj) {
|
||||||
do {
|
do {
|
||||||
curleft += obj.offsetLeft;
|
curleft += obj.offsetLeft;
|
||||||
curtop += obj.offsetTop;
|
curtop += obj.offsetTop;
|
||||||
} while (obj == obj.offsetParent);
|
// eslint-disable-next-line no-cond-assign
|
||||||
|
} while (obj = obj.offsetParent);
|
||||||
return { left: curleft, top: curtop };
|
return { left: curleft, top: curtop };
|
||||||
}
|
}
|
||||||
return { left: curleft, top: curtop };
|
return { left: curleft, top: curtop };
|
||||||
|
|
Loading…
Reference in New Issue