Skip to content

Padding accuracy after drag#5

Closed
ben-million wants to merge 1 commit intomainfrom
cursor/padding-accuracy-after-drag-88c3
Closed

Padding accuracy after drag#5
ben-million wants to merge 1 commit intomainfrom
cursor/padding-accuracy-after-drag-88c3

Conversation

@ben-million
Copy link
Collaborator

Enhances ctrl+drag functionality to generate more accurate placement and spacing instructions for the agent, improving the precision of component repositioning.

The previous ctrl+drag prompt generation relied on simple Y-coordinate comparisons, leading to imprecise instructions for the agent, especially with nested components, varying parent paddings, and horizontal movements. This update introduces a layout-aware drag context that considers virtual target rectangles, parent content boxes, and explicit insertion slots to provide highly accurate, structural placement guidance.


Open in Web Open in Cursor 

Co-authored-by: Ben MacLaurin <ben-million@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Mar 8, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@ben-million ben-million closed this Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants