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 Graph Editor unintentional camera orbit in render view #2032

Conversation

LeaRe
Copy link
Contributor

@LeaRe LeaRe commented Sep 27, 2024

This fixes the logic that detects whether the cursor is in the render view. Previously, there were three known issues that are fixed with this change:

  • The camera would orbit when grabbing the scrollbar located next to the render view.
  • The camera would orbit when clicking a menu option in the menu dropdown overlapping the render view.
  • The previous logic to detect the cursor in the render view did not consider that the render view moves up when scrolling. As a result, the camera would still orbit when clicking parts of the Node Property Editor that were previously occupied by the render view.

Copy link

linux-foundation-easycla bot commented Sep 27, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@LeaRe LeaRe force-pushed the issue-1984-fix-mouse-ui-action-camera-orbit branch 2 times, most recently from 79ffeb8 to d096f94 Compare September 27, 2024 21:52
This fixes the logic that detects whether the cursor is in the render view.
Previously, there were three known issues that are fixed with this change:
- The camera would orbit when grabbing the scrollbar located next to the render
  view.
- The camera would orbit when clicking a menu option in the menu dropdown
  overlapping the render view.
- The previous logic to detect the cursor in the render view did not consider
  that the render view moves up when scrolling. As a result, the camera would
still orbit when clicking parts of the Node Property Editor that were
previously occupied by the render view.

Signed-off-by: Lea Reichardt <[email protected]>
@LeaRe LeaRe force-pushed the issue-1984-fix-mouse-ui-action-camera-orbit branch from d096f94 to 313e36c Compare September 27, 2024 22:03
@LeaRe
Copy link
Contributor Author

LeaRe commented Sep 27, 2024

This change fixes issue #1984 and another similar issue I noticed during this work (see comment in issue).

@jstone-lucasfilm
Copy link
Member

This looks really promising, @LeaRe, and I'm CC'ing @lfl-eholthouser for her expertise with this code.

@lfl-eholthouser
Copy link
Contributor

This looks great, @LeaRe! Thanks

Copy link
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

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

Great work on this project, thanks @LeaRe!

@jstone-lucasfilm jstone-lucasfilm merged commit 76bef70 into AcademySoftwareFoundation:main Sep 28, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants