Skip to content

A single image causes non stop loading when looping #1089

@bjoernboehnke

Description

@bjoernboehnke

Describe the bug
If a single image is in the array, the looping is active and you try to go to the "next" image which would be the same, the loading spinner shows up and does not stop. You can close the darkbox overlay using ESC and reopen the image.

To Reproduce
Steps to reproduce the behavior:

  1. Create a gallery with a single image
  2. Enable loopDirection BOTH
  3. Open the single image in darkbox overlay (Full-Screen)
  4. Click next or use the arrow key

Expected behavior
The same image should be shown since there is only one in the list and looping is active.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version: 116.0.5845.110 (arm64)

Additional context
No network or console error is shown when this happens

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