chore (maintain): cleanup func

This commit is contained in:
MickaelK 2025-08-22 21:46:42 +10:00
parent cf2fec7ac0
commit 2e8149e88c

View file

@ -383,9 +383,7 @@ export default async function(render) {
obj.y + obj.h < bounds.y || obj.y + obj.h < bounds.y ||
obj.y > bounds.y + bounds.h obj.y > bounds.y + bounds.h
); );
if (collision && !checked()) { if (collision && !checked() || !collision && checked()) {
$checkbox.click();
} else if (!collision && checked()) {
$checkbox.click(); $checkbox.click();
} }
} }