fix reclaimning

This commit is contained in:
ntr
2019-04-29 12:27:08 +10:00
parent 03aae7e3cd
commit 618f366796
7 changed files with 33 additions and 28 deletions
+3 -2
View File
@@ -110,7 +110,7 @@ function Vbox(args) {
if (boundTimer) {
clearTimeout(boundTimer);
if (reclaiming && i) sendVboxReclaim(i);
if (reclaiming && vbox.bound[i]) sendVboxReclaim(i);
else if (vbox.bound[i]) {
const insert = combiner.findIndex(j => j === null);
if (insert === -1) return setCombiner([i, null, null]);
@@ -128,7 +128,7 @@ function Vbox(args) {
}
function boundClick(e, i) {
if (reclaiming && i) sendVboxReclaim(i);
if (reclaiming && vbox.bound[i]) sendVboxReclaim(i);
else if (vbox.bound[i]) {
const insert = combiner.findIndex(j => j === null);
if (insert === -1) return setCombiner([i, null, null]);
@@ -210,6 +210,7 @@ function Vbox(args) {
return setReclaiming(!reclaiming);
}
console.log('reclaiminig', reclaiming)
const classes = `vbox ${activeVar !== null || activeCryp ? 'hidden' : ''}`;
const reclaimClass = `instance-btn instance-ui-btn vbox-btn ${reclaiming ? 'reclaiming' : ''}`;