Fix: use drag event for macOS smooth drag#758
Fix: use drag event for macOS smooth drag#758PekingSpades wants to merge 1 commit intogo-vgo:masterfrom
Conversation
|
Important Installation incomplete: to start using Gemini Code Assist, please ask the organization owner(s) to visit the Gemini Code Assist Admin Console and sign the Terms of Services. |
📝 WalkthroughWalkthroughThe pull request refactors mouse movement operations by extracting common logic into internal helper functions and introducing new public dragging APIs. Both C and Go layers consolidate drag and non-drag movements through shared implementation patterns, simplifying control flow while maintaining backward compatibility. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Tip 🧪 Unit Test Generation v2 is now available!We have significantly improved our unit test generation capabilities. To enable: Add this to your reviews:
finishing_touches:
unit_tests:
enabled: trueTry it out by using the Have feedback? Share your thoughts on our Discord thread! Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
It is closed because you can use |
|
And this change broke the MoveSmooth() API code. |
|
It does not introduce a breaking change to MoveSmooth.
The only behavior change is on the drag path: DragSmooth/DragMouse now use drag events on macOS. On Windows/Linux, dragMouse is already redirected to moveMouse in the C layer, so adding platform checks in Go would be redundant and would just spread conditional code. |
Please provide Issues links to:
Provide test code:
Reproduction
Before this change: Chrome drag works, and
Dragcan drag macOS desktop icons, butDragSmoothcannot smoothly drag desktop icons.Description
DragSmooth.MoveSmoothbehavior unchanged; deprecatedDragMousenow delegates toDragSmooth.Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.