...even less eager

This commit is contained in:
tophf 2017-12-07 11:10:32 +03:00
parent 6e1a6d1ad6
commit a71d2fa226

View File

@ -459,7 +459,11 @@
if (sorting) {
sorting = false;
docRootObserver.takeRecords();
if (!restorationLimitExceeded()) {
start();
} else {
setTimeout(start, 1000);
}
}
}
function isMovable(el) {
@ -474,9 +478,6 @@
}
function moveAfter(el, expected) {
if (!sorting) {
if (restorationLimitExceeded()) {
return false;
}
sorting = true;
docRootObserver.stop();
}
@ -493,11 +494,7 @@
restorationCounter = 0;
}
lastRestorationTime = t;
if (++restorationCounter > 10) {
sorting = false;
setTimeout(start, 1000);
return true;
}
return ++restorationCounter > 2;
}
}
})();