Skip to content

Negative photo indexing #21

@AnthonyN3

Description

@AnthonyN3

Because of the buffer indexing and deque. You can technically create negative photo indexing for 3-5 photos (depends on how large the buffer size is, currently its fixed, and set to 5).

But if the forward buffer index reaches the last photo in the set, it resets both the forward and backwards index. At this point, if you use the controls to move backwards which will pop out the previous photos (for a max of 5 times), then you are essentially subtracting 0 by 1 each time for a max of 5 times.

This results in a negative forward buffer index which means when you move forward for the next 5, you are loading in the last 5 photos of the new photo set. Technically, everything still works fine and after those 5 photos are shown its back in order but its just not expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions