alot of effects fixes

This commit is contained in:
osiu97
2026-07-08 21:30:46 +02:00
parent a28dd7543d
commit 3a4b3ec2d6
2 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -95,7 +95,8 @@ async function executeQueue() {
const maxDist = Math.max(dist1, dist2);
if (motionQueue.length > 0) {
const queueAction = MotionEffects.getQueueAction(target.mode, maxDist, CONFIG.BLEND_THRESHOLD_STEPS);
const nextTarget = motionQueue[0];
const queueAction = MotionEffects.getQueueAction(target.mode, nextTarget.mode, maxDist, CONFIG.BLEND_THRESHOLD_STEPS);
if (queueAction.action === 'wait') {
clearInterval(queueCheckInterval);
setTimeout(executeQueue, queueAction.delay);