-
Notifications
You must be signed in to change notification settings - Fork 103
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
Problems when scale transform applied to parent #31
Comments
Thanks for reporting this issue. It indeed overwrites the transform style. Need to fix. |
Fixed in v1.1.0: |
@xieziyu [scale] option is not working - it is creating more issue If possible can you please validate that PR or please elaborate the issues so that we can take look further... |
@paresh-2016 Daithi1's PR failed the test when [inBounds] and [boundary] set. The dragging element hit the boundary and bounced off. |
@xieziyu even after using the [scale] option the issue remains where if there is a CSS transform scale applied on the parent of the element we want to drag, the cursor and the element become de-synced. So it seems like we need to divide the |
@rathodsanjay |
@xieziyu Thanks! |
There is one more problem. |
This is my first ever issue-report. Sorry if it is not appropriate for whatever reason.
As far as I can tell, If any ancestor of the div you are trying to drag has a CSS scale transform, things don't work very well (at least on Chrome on Mac - have not tested elsewhere).
It is kind of hard to describe the exact symptoms - there are different problems depending on if you scale up or scale down both for simple dragging and for bounds-checking.
These problems are easy to replicate using dev tools on your demo and editing CSS to include (say) transform: scale(.75) or (say) transform: scale(1.5).
Thanks for ngDraggable!
The text was updated successfully, but these errors were encountered: