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

Custom transitionSpeed value cancelled after certain time or mousevents #13

Closed
nwesthoff opened this issue Sep 27, 2020 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@nwesthoff
Copy link

馃悰 Custom transitionSpeed value cancelled after certain time or mousevents

Describe the bug
My custom set transition speed value is cancelled/bypassed after certain time or maybe (?) mousevents. It very noticeably switches from being smoothed to instantly responding. Upon moving the cursor outside and then inside the element the issue is (temporarily) resolved.

To Reproduce
Steps to reproduce the behavior:

  1. Create a <Tilt /> component
  2. Set a custom transitionSpeed prop
  3. Wiggle your mouse around for a few seconds (while staying within the frame)
  4. The transition speed is now instant
  5. Move the cursor outside the component, then back in
  6. Works again, but then issue repeats when you stay inside again

Expected behavior
I expect the transition speed to stay slow for as long as the prop is not unset

Link to demo (highly encouraged)
CodeSandbox demo.

Code snippets
If applicable, add code samples to help explain your problem.

Environment

  • Browser: Chrome 85.0.4183.121 on Windows 10
  • Version: "react-parallax-tilt": tested 1.0.13 and (currently latest) 1.4.65

Additional context
I expect it has to do with specifically higher values for transition speed, but it might also be an effect of the change being more noticeable.

@mkosir mkosir added the bug Something isn't working label Oct 15, 2020
@mkosir mkosir self-assigned this Feb 2, 2021
@mkosir
Copy link
Owner

mkosir commented Feb 3, 2021

Hi @nwesthoff, thanks for providing detailed bug report with reproducible demo link!
Bug fix is merged and deployed in the newest version 1.4.75, please check and confirm if it's working for you as expected?

@nwesthoff
Copy link
Author

Hey @mkosir, looks good on my end! Thanks

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

2 participants