Skip to content

Conversation

eriktrk
Copy link

@eriktrk eriktrk commented Sep 14, 2025

Summary

• Fixed resize handle position calculation by properly tracking initial mouse position
• Resolved mouse escape bug where fast dragging would leave resize state active
• Added robust cleanup triggers for all edge cases (tab switch, window blur, escape key)

Bug Fixes

Handle jumping: Resize calculations now use initial mouse position instead of overlay position
Mouse escape: Smart detection stops resize when cursor leaves viewport
Stuck resize state: Multiple cleanup triggers ensure operations always terminate properly

Test plan

  • Resize handles track mouse position accurately
  • Fast dragging doesn't cause mouse escape issues
  • Tab switching, window blur, and escape key properly stop resize operations
  • No memory leaks or orphaned event listeners
  • Professional UX with smooth interactions

🤖 Generated with Claude Code

- Fix resize handle position calculation by tracking initial mouse position
- Prevent mouse escape bug with comprehensive event handling
- Add robust cleanup on multiple triggers (mouse leave, tab switch, blur, escape key)
- Enhance event management with proper listener cleanup
- Add hover titles to debug panel buttons for better UX
- Prevent race conditions between drag and resize operations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

1 participant