forked from retoor/snek
The scroll detection logic in the chat messages container now triggers auto-scrolling when the user is within the top 20% (1/5) of the remaining scrollable area, instead of the previous 25% (1/4) threshold. This reduces premature scroll jumps during message streaming, allowing users to read older content with less interruption.