Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing dragConstraints={ref} with active layout animations #2707

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

mattgperry
Copy link
Collaborator

@mattgperry mattgperry commented Jun 19, 2024

Fixes https://github.com/framer/company/issues/29798

Ensures that draggable components are always remeasured without their transform.

@mattgperry mattgperry requested a review from nvh June 19, 2024 10:41
Comment on lines +237 to +239
.wait(200)
.trigger("pointermove", 300, 300, { force: true })
.wait(50)
.wait(200)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this required?

Copy link
Collaborator Author

@mattgperry mattgperry Jun 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The layout animation I added is like 100 - 200ms long so this delay has to be long enough for them to trigger and break the measurements

@mattgperry mattgperry added the automerge Land this PR label Jun 25, 2024
@mergetron mergetron bot merged commit 98833d2 into main Jun 25, 2024
1 check passed
@mergetron mergetron bot deleted the fix/drag-constraints branch June 25, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Land this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants