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

Trouble with scrolling in freemode. "Cannot read properties of undefined (reading 'speed')" #7654

Closed
5 of 6 tasks
MatVasylenko opened this issue Jul 29, 2024 · 0 comments
Closed
5 of 6 tasks
Labels

Comments

@MatVasylenko
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-trouble-with-scrolling-in-free-mode-f43ygm?file=%2Fsrc%2FApp.tsx

Bug description

I use swiper with FreeMode to create tooltip dropdown with a scrolling list.

If we wait until the scroll is finished and then close the dropdown then everything will be fine, but if we close the dropdown before the scroll is finished - we get an error "Cannot read properties of undefined (reading 'speed')"

This bug we can reproduced for example with mousewheel scrolling
Add video files with emulating this problem in codesandbox

zapis-ekrana-2024-07-29-v-111528_aVeaAa5J.mp4

Expected Behavior

  • No error after closing dropdown with unfinished scrolling

Actual Behavior

  • Error "Cannot read properties of undefined (reading 'speed')" after closing dropdown with unfinished scrolling

Swiper version

11.1.1

Platform/Target and Browser Versions

Chrome 126.0.6478.183

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant