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