Skip to content

[BUG] Reordering randomly stuck #2101

@hexwit

Description

@hexwit

2. Describe the bug

Simple dnd for tabs reordering implemented based on the mantine framework and Reorder component from framer.
At some conditions tab does not return to its position and stuck half way after mouse release.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

Sandbox

4. Steps to reproduce

Steps to reproduce the behavior:

  1. Reorder tabs with different speed and direction. Release mouse button randomly.
  2. Tab does not return to its original place

Note: issue is flaky, it may not be reproduced from the first time. Need to try multiple times.
Note2: issue also reproducible with simple divs, but it much harder to achieve than with this tab component.

5. Expected behavior

Tab should return to its original position.

6. Video or screenshots
image
https://www.awesomescreenshot.com/video/16890983?key=a98190f65e1a774787d9b25f462637c5

7. Environment details

Chrome (Version 111.0.5563.146 (Official Build) (64-bit))
Chrome on iPad (latest versions)

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