Skip to content

Abs value wrong in negative range #445

@Matoseb

Description

@Matoseb

Hi, i was trying to make the example Dynamic Content (500 Names, 2 Slides) infinitely loopable.

But it seems that the abs value is wrong when it's going in the negative range.
For instance, when the slide is swapped to the left the abs glitches from -2 to -4.

Here is my code:
https://codesandbox.io/p/devbox/compassionate-snow-d2q759?workspaceId=ws_MBzYrkk7MQx3BzWezLbpbP

For now i will use a huge number for the initial index, making it only works with positive abs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions