Skip to content

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