Shopify / draggable

The JavaScript Drag & Drop library your grandparents warned you about.
https://shopify.github.io/draggable
MIT License
17.93k stars 1.09k forks source link

The mirror element created at the wrong place when using flexbox #535

Open msamiluludag opened 2 years ago

msamiluludag commented 2 years ago

Please use this template to help contributors get a detailed description of the issue or feature.

For support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.

1. Apply either the bug or feature-request label

Select appropriate label in right sidebar...

2. Describe the bug or feature

The mirror element created at the wrong place when using flexbox.

3. If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Demo: https://codepen.io/muhammed649/pen/BarYLEE

Please click and hold elements five or six to see the issue.

4. Please tell us about your environment:

zjffun commented 2 years ago

Sorry for late response. This bug seems fixed in the latest version (1.0.0-beta.12). Demo: https://codepen.io/1010543618/pen/RwMJjMm