From fa14cc6141b46c0cc423808c4bac65dae3cfe51d Mon Sep 17 00:00:00 2001 From: bbedward Date: Sun, 10 Aug 2025 00:36:51 -0400 Subject: [PATCH] make text scroll speed relative to text length --- Modules/TopBar/Media.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/TopBar/Media.qml b/Modules/TopBar/Media.qml index c672e70f..b9c8381b 100644 --- a/Modules/TopBar/Media.qml +++ b/Modules/TopBar/Media.qml @@ -161,7 +161,7 @@ Rectangle { property: "scrollOffset" from: 0 to: mediaText.implicitWidth - textContainer.width + 5 - duration: 5000 + duration: Math.max(1000, (mediaText.implicitWidth - textContainer.width + 5) * 60) easing.type: Easing.Linear } @@ -171,7 +171,7 @@ Rectangle { target: mediaText property: "scrollOffset" to: 0 - duration: 5000 + duration: Math.max(1000, (mediaText.implicitWidth - textContainer.width + 5) * 60) easing.type: Easing.Linear } }