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 regression of world space drag bug #3748 #4937

Merged
merged 2 commits into from Dec 21, 2022
Merged

Conversation

yaustar
Copy link
Contributor

@yaustar yaustar commented Dec 19, 2022

Fixes #3748

PR #4935 reintroduces the bug #3748

This PR zeros out the local Z translation of the drag in _screenToLocal so that the element can only move along it's local Y and X axis

1.59

Kapture.2022-12-19.at.15.54.13.mp4

With this PR and #4935

Kapture.2022-12-19.at.15.54.51.mp4

CC @kungfooman

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

@yaustar yaustar self-assigned this Dec 19, 2022
@yaustar yaustar added the bug label Dec 19, 2022
Copy link
Contributor

@willeastcott willeastcott left a comment

Choose a reason for hiding this comment

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

Approving but get @kungfooman's approval too! 😄

@kungfooman
Copy link
Collaborator

Wow, thank you for fixing this so quickly!

I would love to properly test it, but it takes some time and I'm in the process of finishing something else rn, so I could do it tomorrow

@yaustar
Copy link
Contributor Author

yaustar commented Dec 19, 2022

Yeah, tomorrow or later this week is fine :)

@kungfooman
Copy link
Collaborator

I tested this in different circumstances and it works perfectly, great job 👍

@yaustar yaustar merged commit fad0365 into main Dec 21, 2022
@yaustar yaustar deleted the world-space-scroll-view-fix branch December 21, 2022 13:39
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.

If a draggable element entity parent is moving while the element is dragged, it will move in local Z
4 participants