Skip to content

Autoplay not working when slides is less than perPage AND in loop mode #1362

@adamchipperfield

Description

@adamchipperfield

Checks

Version

v4.1.4

Description

When in loop mode, and if the slides are equal to or less than perPage, the autoplay doesn't seem to work. For example, I have 2 slides with this config:

{
    "type": "loop",
    "autoplay": true,
    "mediaQuery": "min",
    "perPage": 1,
    "breakpoints": {
        "1024": {
            "perPage": 2
        }
    }
}

So on >1024px viewport, it doesn't work.

Even trying to force play() doesn't work. I've seen similar questions where answers were just "Why do you want to autoplay if you don't have enough slides?" - but this is with loop. So there is definitely enough slides (the user can manually drag through the duplicates).

Reproduction Link

No response

Steps to Reproduce

  1. Use the above options.

Expected Behaviour

The autoplay works with the above options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions