Skip to content
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

fix: allow translate3d transforms on getElementRect() #100

Closed
wants to merge 1 commit into from

Conversation

infnada
Copy link

@infnada infnada commented Oct 20, 2019

As an example, angular meterial cdkDrag uses translate3d transform to move objects.

Changed the way to extract translateX & translateY to be able to work with 'translate' and 'translate3d' transforms.

original regex from https://stackoverflow.com/a/31658290/4478897

Copy link
Owner

@mattlewis92 mattlewis92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for this! It looks like it broke one of the tests though, can you look into that? Could you also add a test case for this issue as well? You should be able to adapt this one: https://github.com/mattlewis92/angular-resizable-element/blob/master/test/resizable.spec.ts#L1422-L1445

Repository owner deleted a comment from AliSawari Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants