fix(Drawer): account for cursor position in resize#12506
Conversation
Walkthrough
DrawerPanelContent resize state refactor
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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: https://pf-react-pr-12506.surge.sh A11y report: https://pf-react-pr-12506-a11y.surge.sh |
What: Closes #12438
This bug appears to be unrelated to the unified changes, it was just easier to see on the pill resizable drawers. The issue stems from the logic making the drag edge align with the panel edge and not the initial cursor position on the splitter. So the initial jump was the drawer's edge re-aligning on the cursor position.
Debugging assisted by Cursor AI
Summary by CodeRabbit