-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
help(COMPONENT): cdkDragConstrainPosition works strange #25046
Labels
Comments
v1nger125
added
needs triage
This issue needs to be triaged by the team
troubleshooting
This issue is not reporting an issue, but just asking for help
labels
Jun 9, 2022
crisbeto
added
P2
The issue is important to a large percentage of users, with a workaround
area: cdk/drag-drop
and removed
troubleshooting
This issue is not reporting an issue, but just asking for help
needs triage
This issue needs to be triaged by the team
labels
Jun 10, 2022
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jun 11, 2022
Fixes that the `constrainPosition` input wasn't constraining the position as described in the docs. This may have worked at some point, but it's definitely broken now. Our tests didn't catch it, because they were looking at the `transform` which was wrong, instead of the position the element ended up at. Fixes angular#25046.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jun 11, 2022
Fixes that the `constrainPosition` input wasn't constraining the position as described in the docs. This may have worked at some point, but it's definitely broken now. Our tests didn't catch it, because they were looking at the `transform` which was wrong, instead of the position the element ended up at. Fixes angular#25046.
crisbeto
added a commit
that referenced
this issue
Jun 12, 2022
Fixes that the `constrainPosition` input wasn't constraining the position as described in the docs. This may have worked at some point, but it's definitely broken now. Our tests didn't catch it, because they were looking at the `transform` which was wrong, instead of the position the element ended up at. Fixes #25046. (cherry picked from commit 2c956c0)
crisbeto
added a commit
that referenced
this issue
Jun 12, 2022
Fixes that the `constrainPosition` input wasn't constraining the position as described in the docs. This may have worked at some point, but it's definitely broken now. Our tests didn't catch it, because they were looking at the `transform` which was wrong, instead of the position the element ended up at. Fixes #25046.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
What are you trying to do?
i'm trying to create some grid with
cdkDragConstrainPosition
but some clicks cause random movements close to the grid nodesas an example i create i simple one of your demo with constant values of
cdkDragConstrainPosition
but it still continue random movement on each drag-drop, does i miss something? in such case i supposed it should stay statichttps://stackblitz.com/edit/angular-iwidmo-1kbix8?file=src/app/cdk-drag-drop-free-drag-position-example.html
What troubleshooting steps have you tried?
above
Reproduction
Steps to reproduce:
https://stackblitz.com/edit/angular-iwidmo-1kbix8?file=src/app/cdk-drag-drop-free-drag-position-example.html
Environment
The text was updated successfully, but these errors were encountered: