add Qt.callLater() to sidebar scroll to bottom (#2183)

This commit is contained in:
end-4
2025-10-12 10:51:17 +02:00
committed by GitHub
@@ -336,10 +336,10 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\)
property int lastResponseLength: 0
onContentHeightChanged: {
if (atYEnd) positionViewAtEnd();
if (atYEnd) Qt.callLater(positionViewAtEnd);
}
onCountChanged: { // Auto-scroll when new messages are added
if (atYEnd) positionViewAtEnd();
if (atYEnd) Qt.callLater(positionViewAtEnd);
}
add: null // Prevent function calls from being janky
@@ -778,4 +778,4 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\)
}
}
}