diff --git a/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml b/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml index 16d7baee8..814077787 100644 --- a/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml +++ b/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml @@ -335,14 +335,11 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\) mouseScrollFactor: Config.options.interactions.scrolling.mouseScrollFactor * 1.4 property int lastResponseLength: 0 - property bool shouldAutoScroll: true - - onContentYChanged: shouldAutoScroll = atYEnd onContentHeightChanged: { - if (shouldAutoScroll) positionViewAtEnd(); + if (atYEnd) positionViewAtEnd(); } onCountChanged: { // Auto-scroll when new messages are added - if (shouldAutoScroll) positionViewAtEnd(); + if (atYEnd) positionViewAtEnd(); } add: null // Prevent function calls from being janky