@luckydraw/cumulus 0.27.8 → 0.27.10
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,11 @@
|
|
|
2375
2377
|
|
|
2376
2378
|
// ── Panel-local render functions ──
|
|
2377
2379
|
function scrollToBottom() {
|
|
2378
|
-
|
|
2380
|
+
requestAnimationFrame(function() {
|
|
2381
|
+
requestAnimationFrame(function() {
|
|
2382
|
+
messagesEl.scrollTop = messagesEl.scrollHeight;
|
|
2383
|
+
});
|
|
2384
|
+
});
|
|
2379
2385
|
}
|
|
2380
2386
|
|
|
2381
2387
|
function isWideUserMessage(content) {
|
|
@@ -2557,6 +2563,9 @@
|
|
|
2557
2563
|
state._renderMessages = renderPanelMessages;
|
|
2558
2564
|
state._updateSendBtn = updatePanelSendBtn;
|
|
2559
2565
|
|
|
2566
|
+
// Initial render (messages may already be loaded from a previous view)
|
|
2567
|
+
renderPanelMessages();
|
|
2568
|
+
|
|
2560
2569
|
// ── Send message for this panel ──
|
|
2561
2570
|
function sendPanelMessage() {
|
|
2562
2571
|
var text = inputEl.value.trim();
|