Fix the Shift-drag alignment guide anchoring to the prior selection instead of the dragged layer#4278
Conversation
…nstead of the dragged layer
There was a problem hiding this comment.
Code Review
This pull request refactors how the drag start center is tracked and calculated in the select tool. The static drag_start_center field has been removed from SelectToolData in favor of a dynamically computed dragging_layers_center method. This method calculates the center of the combined viewport-space bounding box of the currently dragged layers. The FSM logic has been updated to use this dynamic calculation, adjusting for drag displacement to keep the guide anchored correctly during viewport auto-panning. There are no review comments, so no feedback is provided.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Closes #4248