Commit eeed6b4
Dylan Huang
Enhance auto-scroll functionality in ChatInterface to prevent initial scroll on mount
- Added a reference to track the initial mount state, preventing auto-scrolling on the first render.
- Updated the scrolling logic to only trigger after the initial mount when new messages are received, improving user experience during chat interactions.1 parent dcf2134 commit eeed6b4
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
0 commit comments