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

SwierJS now autoplaying in mobile view ReactJS #7488

Closed
6 tasks done
daniLdutra opened this issue Apr 23, 2024 · 1 comment
Closed
6 tasks done

SwierJS now autoplaying in mobile view ReactJS #7488

daniLdutra opened this issue Apr 23, 2024 · 1 comment
Labels

Comments

@daniLdutra
Copy link

daniLdutra commented Apr 23, 2024

Check that this is really a bug

  • I confirm

Reproduction link

Bug description

Swiper is working properly on desktop view, switching images automatically (autoplay).
As soon as I switch to mobile view it gets stuck in one the first image and doesn't switch no matter what.

import { Swiper, SwiperSlide } from 'swiper/react';
import 'swiper/css';
import 'swiper/css/pagination';
import { Autoplay, Pagination } from 'swiper/modules';
import { images } from './images';

<Swiper
direction={'vertical'}
pagination={{
clickable: true,
}}
autoplay={{
delay: 2500,
disableOnInteraction: false,
}}
modules={[Autoplay, Pagination]}
>
{images.map((image, index) => (

<img
src={image}
alt={Slide ${index + 1}}
className="h-96 w-auto object-cover md:h-full md:w-full"
/>

))}

Expected Behavior

Autoplay on mobile view.

Actual Behavior

Get's stuck in the first image.

Swiper version

11.1.1

Platform/Target and Browser Versions

Xubuntu 22.04.4 Google Chrome 124.0.6367.60

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
@nolimits4web
Copy link
Owner

Your issue is closed because it is not filled correctly. Before you open an issue please review the contributing guideline.

Please fill the issue template correctly and:

  • Clearly describe the issue including steps to reproduce when it is a bug.
  • Make sure you fill in the earliest version that you know has the issue.
  • Provide live link or JSFiddle/Codepen or website with isssue

It will save a lot of time for other contributors to check your issue and fix it.

Repository owner locked and limited conversation to collaborators Apr 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants