clauderic / clauderic/react-sortable-hoc

Offsets are wrong when container is scaled

Open
#455 5 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.9k
Forks
959
PR merge metrics
No merged PRs in 30d

Description

How to reproduce:
1. Go to the basic demo page: http://clauderic.github.io/react-sortable-hoc/#/basic-configuration/basic-usage?_k=jtwbel
2. Apply `transform: scale(0.3);` on the scrolling container, `Showcase__style__list Showcase__style__stylizedList`.
3. Try dragging, all offsets are wrong now.

![image](https://user-images.githubusercontent.com/1384885/49734477-b2c5f300-fc84-11e8-9c21-e2c7334e3a34.png)

The main issue is that the drop index (mouse position) seems to be wrong now.

I understand that the dragged item scaling is wrong because it's in a different container but I would expect the mouse (drop index) to be correct.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.