@luckydraw/cumulus 0.27.8 → 0.27.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1449,7 +1449,9 @@
|
|
|
1449
1449
|
|
|
1450
1450
|
// ── Rendering ──
|
|
1451
1451
|
function scrollToBottom() {
|
|
1452
|
-
|
|
1452
|
+
requestAnimationFrame(function() {
|
|
1453
|
+
messagesEl.scrollTop = messagesEl.scrollHeight;
|
|
1454
|
+
});
|
|
1453
1455
|
}
|
|
1454
1456
|
|
|
1455
1457
|
function isWideUserMessage(content) {
|
|
@@ -2375,7 +2377,9 @@
|
|
|
2375
2377
|
|
|
2376
2378
|
// ── Panel-local render functions ──
|
|
2377
2379
|
function scrollToBottom() {
|
|
2378
|
-
|
|
2380
|
+
requestAnimationFrame(function() {
|
|
2381
|
+
messagesEl.scrollTop = messagesEl.scrollHeight;
|
|
2382
|
+
});
|
|
2379
2383
|
}
|
|
2380
2384
|
|
|
2381
2385
|
function isWideUserMessage(content) {
|