fix(desktop): prevent webview from capturing drag events during pane rearrangement#1547
Conversation
…rearrangement Electron webviews render in a separate compositing layer and capture drag events, breaking React Mosaic pane drag-and-drop when the cursor moves over a browser pane. Disable pointer events on pane content during drag so the mosaic drop targets receive events correctly.
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughThe change introduces a new Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
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)
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 |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary
pointer-eventson pane content during drag so mosaic drop targets receive events correctlyChanges
isDraggingfrom drag pane store; applypointer-events: noneon the content container while a pane drag is in progressTest Plan
Summary by CodeRabbit