Skip to content

Conversation

@gary149
Copy link
Owner

@gary149 gary149 commented Nov 30, 2025

  • Add ResizeObserver to detect content height changes (expanding thinking blocks, streaming content)
  • Make detach detection less aggressive with proper thresholds
  • Track programmatic vs user scrolls to avoid false detachment
  • Use requestAnimationFrame for smoother scroll updates
  • Update ScrollToBottomBtn and ScrollToPreviousBtn with consistent thresholds

- Add ResizeObserver to detect content height changes (expanding thinking blocks, streaming content)
- Make detach detection less aggressive with proper thresholds
- Track programmatic vs user scrolls to avoid false detachment
- Use requestAnimationFrame for smoother scroll updates
- Update ScrollToBottomBtn and ScrollToPreviousBtn with consistent thresholds
- Reduce SCROLL_UP_THRESHOLD from 30px to 5px so users can detach easily
- Add 150ms cooldown after user scroll to prevent auto-scroll from fighting
- Track lastUserScrollTime to detect active user scrolling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants