Skip to content

Carousel order depends on image render order #2197

Open
@ekzyis

Description

@ekzyis

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

This is something that has been the case for a while since I added the image carousel in #1425:

It's not just that the images are out of order in terms of item order, they can also get out of order for an item with multiple images.

Depending on render order is the problem. Solving this is probably going to be pretty involved unfortunately.

Originally posted by @huumn in #1425 (comment)

Screenshots

No response

Steps To Reproduce

  1. Post a lot of images in one item
  2. Images load in parallel so some images might load faster than images before them
  3. Enter carousel by clicking on first image
  4. It's probably not the first image in the carousel

Example: https://stacker.news/items/993382

Expected behavior

Order of images in carousel is the same as the order in which they show up in an item.

Logs

No response

Device information

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions