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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Drag constraints change unexpectedly when in certain states #2488

Open
jjkavalam opened this issue Jan 13, 2024 · 0 comments
Open

[BUG] Drag constraints change unexpectedly when in certain states #2488

jjkavalam opened this issue Jan 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jjkavalam
Copy link

jjkavalam commented Jan 13, 2024

1. Read the FAQs 馃憞

2. Describe the bug

Give a clear and concise description of what the bug is.

Certain animation states seem to mess with the effective drag constraints. It is best explained by the code sandbox link below.

Basically, i should be able to drag the box any where within the specified drag constraints in all states. But under certain conditions the effective drag constraints applied by framer motion is different from what is specified.

Those edge cases seems to be triggered by states that set properties such as width.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

https://codesandbox.io/p/sandbox/framer-motion-drag-reset-attempt-forked-pcthq9

4. Steps to reproduce

Steps to reproduce the behavior:

  1. Go to the linked Code Sand box and follow the instructions on screen.

5. Expected behavior

Drag constraints are consistently applied in all states.

6. Video or screenshots

Video recording: https://drive.google.com/file/d/1UwgWnUmrQ5kCBfA344MlmwDCn0qB9cSk/view?usp=sharing

7. Environment details

If applicable, let us know which OS, browser, browser version etc you're using.

Mac / Chrome

@jjkavalam jjkavalam added the bug Something isn't working label Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant