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 v4: 'scaling' event triggered before object position is adjusted #6650

Merged
merged 6 commits into from
May 9, 2021
Merged

fix v4: 'scaling' event triggered before object position is adjusted #6650

merged 6 commits into from
May 9, 2021

Conversation

SLKnutson
Copy link
Contributor

Hopefully this is satisfactory. It worked in my project.
#6649
Thanks!

* @param {Function} actionHandler the function to wrap
* @return {Function} a function with an action handler signature
*/
function wrapWithFixedAnchor(actionHandler) {
function wrapWithFixedAnchor(eventName, actionHandler) {
Copy link
Member

Choose a reason for hiding this comment

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

we can't change wrapWithFixedAnchor argument signature, or we would break the compatibility of fabric v4.

Copy link
Member

Choose a reason for hiding this comment

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

we need an event wrapper, or something like that. I ll get some fixes done and then i ll try to help.

@stale
Copy link

stale bot commented Oct 31, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue marked as stale by the stale bot label Oct 31, 2020
@asturur asturur added bug and removed stale Issue marked as stale by the stale bot labels Nov 3, 2020
@SLKnutson SLKnutson closed this Jan 14, 2021
@asturur
Copy link
Member

asturur commented Jan 14, 2021

This still a valid issue

@asturur asturur reopened this Jan 14, 2021
@asturur
Copy link
Member

asturur commented Jan 14, 2021

I do not have the pipeline to check it, or the time to fix the test errors, but we definitely need this as a reminder to fix it.

@SLKnutson
Copy link
Contributor Author

@asturur I updated the PR to not change the argument signature

@asturur
Copy link
Member

asturur commented Jan 31, 2021

hi @SLKnutson i know a lot of time passed, but now the pipeline is working again.
If you can update your PR with a fresh master branch, it would run again and we can continue to fix it.

@SLKnutson
Copy link
Contributor Author

@asturur
It seems like the failure isn't related to the code?

@SLKnutson SLKnutson requested a review from asturur May 1, 2021 02:13
@asturur
Copy link
Member

asturur commented May 4, 2021

hi @SLKnutson i ll review asap

@asturur
Copy link
Member

asturur commented May 4, 2021

seems great tho

@ShaMan123
Copy link
Contributor

+1 exactly what I need. Bleeded a day on this.

@asturur asturur merged commit 6b920e7 into fabricjs:master May 9, 2021
@asturur asturur mentioned this pull request May 22, 2021
@melchiar
Copy link
Member

Thanks for this! Turns out this was the cause of a bug in my application that started a few versions ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants