nolimits4web / swiper

Most modern mobile touch slider with hardware accelerated transitions
https://swiperjs.com
MIT License
39.46k stars 9.75k forks source link

Autoplay pauseOnMouseEnter - Speed Issue #7614

Open matthewmnewman opened 1 month ago

matthewmnewman commented 1 month ago

Check that this is really a bug

Reproduction link

https://codesandbox.io/p/sandbox/swiper-autoplay-progress-forked-qjnwvh

Bug description

This is similar to the issue which was opened before but the solution did the fix this issue.

If you set the speed param to 3000 it will not apply the hover until 3 seconds later.

new Swiper(".mySwiper", {
      slidesPerView: 3,
      speed: 3000,   
      autoplay: {
        delay: 0,
        disableOnInteraction: false,
        pauseOnMouseEnter: true,
      },
    });

Expected Behavior

The swiper should pause immediately rather than waiting the duration set in the animation speed.

Actual Behavior

Swiper pauses based on the speed set in the parameter.

Swiper version

11.1.4

Platform/Target and Browser Versions

MacOs, Chrome!

Validations

Would you like to open a PR for this bug?

G0HAN3 commented 1 month ago

Hey @matthewmnewman , I would like to work on this issue.