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

In orbitControl(), use movedX,Y instead of difference of mouseX,Y #6192

Merged
merged 1 commit into from
Jun 8, 2023
Merged

In orbitControl(), use movedX,Y instead of difference of mouseX,Y #6192

merged 1 commit into from
Jun 8, 2023

Conversation

inaridarkfox4231
Copy link
Contributor

@inaridarkfox4231 inaridarkfox4231 commented Jun 8, 2023

Calculations like mouseX-pmouseX cause unintended behavior when you open the menu outside the canvas and then return inside. So I use something like movedX instead.

Resolves #6191

Changes:

Replace mouseX-pmouseX with movedX. Perform a similar replacement for Y.

Screenshots of the change:

2023-06-08.10-54-49.mp4

PR Checklist

Calculations like mouseX-pmouseX cause unintended behavior when you open the menu outside the canvas and then return inside. So I use something like movedX instead.
Copy link
Contributor

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

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

Looks good!

@davepagurek davepagurek merged commit 40c7a73 into processing:main Jun 8, 2023
@inaridarkfox4231
Copy link
Contributor Author

thanks!('ω')

@inaridarkfox4231 inaridarkfox4231 deleted the use-movedX,movedY branch June 8, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unintended behavior when opening a menu outside the canvas in orbitControl()
2 participants