Repository navigation
Conversation
Return nil in hitTest for passive event types to prevent WindowDragHandleView from participating in hit-testing during passive hover/cursor events.
|
@apollo880 is attempting to deploy a commit to the Manaflow Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a guard condition to WindowDragHandleView's hit-testing logic that skips processing for passive/hover-related events such as mouseMoved, cursorUpdate, mouseEntered, mouseExited, and flagsChanged. A helper function Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR implements a targeted fix to prevent crashes during sidebar/titlebar hover interactions. The root cause was that Key changes:
The fix is minimal, well-reasoned, and directly addresses the crash without affecting drag functionality. Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 2fbaf93 |
|
Thanks for this! The sidebar hover crash fix landed on main in #736, so main covers it now. Closing. |
Fixes #750
Summary
Implemented a targeted fix to prevent crashes when hovering the sidebar/titlebar top control cluster.
Root-cause hypothesis
WindowDragHandleViewparticipated in hit-testing during passive hover/cursor events (mouseMoved,cursorUpdate, etc.). That code path performs complex top-hit/sibling hit-tests intended for drag capture, and it was being exercised on mere pointer motion over titlebar controls.Changes
WindowDragHandleView.DraggableView.hitTest(_:), added a gate to returnnilfor passive event types.Co-authored-by: Codex noreply@openai.com
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Summary by CodeRabbit