-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using css transform makes selection rectangle unaccurate #30
Comments
Can you elaborate a bit? |
When The use case: I've tried to use To reproduce,
|
Thanks for the detailed response. Will have a look. |
Also having this issue... Did you find the problem / fix ? |
Unfortunately I'm not enough of a CSS guru to crack this one. Had a bit of a play with it, and it's easily reproducible. I've had many issues with transform and fixed position in other contexts, and it's widely known as a very unpredictable combination across browsers. There's a good write up on it in the accepted answer on this post. |
Thanks for the answer @unclecheese ! I might find some time to look into it... But I have another blocking issue though : currently the selection happens both when you start the rectangle outside the selectable elements and inside them. This may be good in some cases, but when implemented alongside a drag&drop solution (ReactDND in my case) it's quite a hassle. It would be great to allow to start the selection only on the empty space around the elements so the events on the elements could be reserved for drag and drop... Would that be hard to add to the lib as a parameter ? |
When I use tranform, the bounding rectangle coordinates are wrong.
The text was updated successfully, but these errors were encountered: