From 4e47111a4df12e08397f8081e22da40e6e11bd5c Mon Sep 17 00:00:00 2001 From: kenneth Date: Fri, 31 Oct 2025 01:33:57 +0000 Subject: [PATCH] fix(dashboard): dont set brightness when sliding Co-authored-by: Ona --- apps/dashboard/src/light-control.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/src/light-control.tsx b/apps/dashboard/src/light-control.tsx index ac138d4..bfe2bb9 100644 --- a/apps/dashboard/src/light-control.tsx +++ b/apps/dashboard/src/light-control.tsx @@ -197,7 +197,7 @@ export function LightControlTile({ delete bar.dataset.touchProximity const step = LIGHT_CONTROL_TILE_SLIDER_BAR_COUNT - i - 1 - requestBrightnessStepChange(step) + setIntermediateBrightnessStep(step) if (barRefs.current[i - 1]) { barRefs.current[i - 1]!.dataset.touchProximity = "close" @@ -259,10 +259,10 @@ export function LightControlTile({ const lastElement = barRefs.current[0] if (lastElement && x > lastElement.getBoundingClientRect().right) { lastElement.dataset.thumb = "true" - requestBrightnessStepChange(LIGHT_CONTROL_TILE_SLIDER_BAR_COUNT - 1) + setIntermediateBrightnessStep(LIGHT_CONTROL_TILE_SLIDER_BAR_COUNT - 1) } else if (firstElement && x < firstElement.getBoundingClientRect().left) { firstElement.dataset.thumb = "true" - requestBrightnessStepChange(0) + setIntermediateBrightnessStep(0) } } }