ActiveWindow: reset scrolling when focused window changes

This commit is contained in:
Sighthesia
2025-10-19 11:28:42 +08:00
parent 9e39867117
commit 7015321772

View File

@@ -307,6 +307,14 @@ Item {
font.weight: Style.fontWeightMedium
verticalAlignment: Text.AlignVCenter
color: Color.mOnSurface
onTextChanged: {
if (root.scrollingMode === "always") {
titleContainer.isScrolling = false
titleContainer.isResetting = false
scrollContainer.scrollX = 0
scrollStartTimer.restart()
}
}
}
// Second copy for seamless scrolling