swiper icon indicating copy to clipboard operation
swiper copied to clipboard

Inconsistently manual scrolling when autoplay with delay 0, regression in 9 version

Open alkorlos opened this issue 1 year ago • 2 comments

Check that this is really a bug

  • [X] I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-9-autoplay-delay-0-f29fh3

Bug description

Create a creeping line, applying the following parameters: speed: 3500 and autoplay-delay 0.

Visually, it looks like what need, but there is a bug with manual scrolling. The transition-duration of the swiper-wrapper should reset to 0 during manual scrolling. Starting from version 9, this happens inconsistently. Attaching a video for reference. 2024-05-03 12-21-21_1.webm During the first manual scroll, the transition-duration doesn't reset to 0; however, during the second manual scroll, it works correctly.

With autoplay-delay 1000 work correct.

In version 8.4.7 work correct.

Expected Behavior

transition-duration reset to 0 with manual scrolling.

Actual Behavior

transition-duration not reset to 0 with manual scrolling.

Swiper version

from 9.4.1, including 11.1.1

Platform/Target and Browser Versions

macOS Chrome 124, Windows Chrome 124

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the docs.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • [X] 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

alkorlos avatar May 03 '24 11:05 alkorlos

t0ggles-create swiper

nolimits4web avatar May 03 '24 11:05 nolimits4web

Task nolimits4web/SWIPER-98 was created

t0ggles task SWIPER-98

t0ggles[bot] avatar May 03 '24 11:05 t0ggles[bot]

Task nolimits4web/SWIPER-98 status changed to Done

t0ggles[bot] avatar May 13 '24 08:05 t0ggles[bot]

Thank you!

alkorlos avatar May 13 '24 11:05 alkorlos