lisichatbot 1.7.5 → 1.7.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisichatbot",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -51,9 +51,11 @@ let flowData = null;
51
51
  function scrollToBottom() {
52
52
  if (!elements.messages) return;
53
53
 
54
- // ✅ Scroll to absolute bottom instantly (no smooth animation)
55
- elements.messages.scrollTop = elements.messages.scrollHeight;
56
- console.log(` 📜 Scrolled to bottom: ${elements.messages.scrollHeight}px`);
54
+ // ✅ Force scroll to a very large number to ensure we're at bottom
55
+ // This works even when container is growing dynamically
56
+ elements.messages.scrollTop = 999999;
57
+
58
+ console.log(` 📜 Forced scroll to bottom (scrollTop set to 999999)`);
57
59
  }
58
60
 
59
61
  function enableNextButton() {