better hints
This commit is contained in:
parent
b53faf9610
commit
0f5032becb
@ -131,13 +131,15 @@ function Vbox(args) {
|
||||
function boundClick(e, i) {
|
||||
if (reclaiming && vbox.bound[i]) sendVboxReclaim(i);
|
||||
else if (vbox.bound[i]) {
|
||||
const insert = ['Red', 'Green', 'Blue'].includes(vbox.bound[i])
|
||||
? combiner.findIndex(j => j === null)
|
||||
: 2;
|
||||
|
||||
if (insert === -1) return setCombiner([i, null, null]);
|
||||
combiner[insert] = i;
|
||||
boundTimer = null;
|
||||
if (['Red', 'Green', 'Blue'].includes(vbox.bound[i])) {
|
||||
const insert = combiner.findIndex(j => j === null);
|
||||
if (insert === 2 || insert === -1) return setCombiner([i, null, combiner[2]]);
|
||||
combiner[insert] = i;
|
||||
} else {
|
||||
combiner[2] = i;
|
||||
}
|
||||
|
||||
return setCombiner(combiner);
|
||||
}
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user