-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/grid drag initial delta (#6037)
**Problem:** When dragging a cell from a non-root cell, very non-ergonomic jumping around happens. **Fix:** When calculating the target movement destination cell, accommodate for the delta between the cell the mouse started the interaction over and the root cell the element occupies. Since this adds some math to the strategy helper code, I took this occasion for refactoring that part of the spiky code to make it easier to read and to maintain (with comments \0/ !) Before: https://github.com/concrete-utopia/utopia/assets/1081051/daa3d63e-e403-4fe1-9977-7b5d1f172c18 After: https://github.com/concrete-utopia/utopia/assets/1081051/ca8fd82d-1c92-4008-989e-a4f37f6f6e27
- Loading branch information
Showing
6 changed files
with
195 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.