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

A single image causes non stop loading when looping #1089

Open
bjoernboehnke opened this issue Sep 3, 2023 · 0 comments
Open

A single image causes non stop loading when looping #1089

bjoernboehnke opened this issue Sep 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@bjoernboehnke
Copy link
Member

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

@bjoernboehnke bjoernboehnke added the bug Something isn't working label Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant