Reduce ticker animation speed to improve readability

Reduced speed from 80 to 40 pixels per second to make device name more readable and reduce stuttering.
This commit is contained in:
vicrodh committed 2026-01-19 13:29:52 -06:00
1 parent 0ee2891f44
commit 29dfb78124
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@
let deviceNameTextRef: HTMLSpanElement | null = $state(null); let deviceNameTextRef: HTMLSpanElement | null = $state(null);
let deviceNameOverflow = $state(0); let deviceNameOverflow = $state(0);
const deviceNameOffset = $derived(deviceNameOverflow > 0 ? `-${deviceNameOverflow + 16}px` : '0px'); const deviceNameOffset = $derived(deviceNameOverflow > 0 ? `-${deviceNameOverflow + 16}px` : '0px');
const tickerSpeed = 80; // pixels per second const tickerSpeed = 40; // pixels per second
const deviceNameDuration = $derived(deviceNameOverflow > 0 ? `${(deviceNameOverflow + 16) / tickerSpeed}s` : '0s'); const deviceNameDuration = $derived(deviceNameOverflow > 0 ? `${(deviceNameOverflow + 16) / tickerSpeed}s` : '0s');
// Derived state // Derived state