forked from Shinonome/dots-hyprland
remove useless ai comments
This commit is contained in:
@@ -211,7 +211,6 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Always scroll to bottom when user sends a message
|
// Always scroll to bottom when user sends a message
|
||||||
messageListView.shouldAutoScroll = true
|
|
||||||
messageListView.positionViewAtEnd()
|
messageListView.positionViewAtEnd()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -320,26 +319,13 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\)
|
|||||||
|
|
||||||
property int lastResponseLength: 0
|
property int lastResponseLength: 0
|
||||||
|
|
||||||
// Simple auto-scroll state tracking (proven chat pattern)
|
|
||||||
property bool shouldAutoScroll: true
|
property bool shouldAutoScroll: true
|
||||||
|
onContentYChanged: shouldAutoScroll = atYEnd
|
||||||
// Track when user scrolls - simple and reliable
|
|
||||||
onContentYChanged: {
|
|
||||||
shouldAutoScroll = atYEnd
|
|
||||||
}
|
|
||||||
|
|
||||||
// Auto-scroll when content height changes (during streaming)
|
|
||||||
onContentHeightChanged: {
|
onContentHeightChanged: {
|
||||||
if (shouldAutoScroll) {
|
if (shouldAutoScroll) positionViewAtEnd();
|
||||||
positionViewAtEnd()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
onCountChanged: { // Auto-scroll when new messages are added
|
||||||
// Auto-scroll when new messages are added
|
if (shouldAutoScroll) positionViewAtEnd();
|
||||||
onCountChanged: {
|
|
||||||
if (shouldAutoScroll) {
|
|
||||||
positionViewAtEnd()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
|
|||||||
Reference in New Issue
Block a user