mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
This commit enhances the chat navigation buttons with a more intelligent visibility system that prevents interference with scrolling while maintaining easy access to navigation controls. Key improvements: - Replace static trigger area with dynamic cursor position tracking to allow unobstructed scrolling - Show navigation buttons only when cursor is near the button area or when actively interacting with them - Add throttled mouse position detection (50ms) for better performance - Use passive scroll event listeners for smoother scrolling - Implement smarter auto-hide behavior with 1.5s timeout when cursor leaves the button area This change resolves the issue where navigation buttons would interfere with scrolling when the cursor was in the detection area, creating a more seamless user experience. |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||