#105 coolor picker slider issue fixed

master
Agriya Dev5 2021-06-01 12:00:07 +05:30
parent 2f475ed9c0
commit 51d817f7a9
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@ export function findPos(obj) {
do {
curleft += obj.offsetLeft;
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 };