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

[ui] Fix offset between the mouse's position and the tip of the edge when connecting two nodes #1732

Merged
merged 3 commits into from
Jul 21, 2022

Conversation

cbentejac
Copy link
Contributor

Description

Fix the offset between the tip of the connecting edge and the position of the mouse that could appear when the user quickly dragged the mouse away from the attribute pin. The offset could at times be extremely large, causing issues when trying to connect the edge somewhere (the user needed to position the tip of the edge on the attribute pin with the mouse being positioned sometimes really far away from said attribute pin).

Features list

  • Make the tip of the edge follow accurately the mouse's position when connecting two nodes
  • Align vertically the attribute pins with their matching labels
  • Harmonize the highlighting of the attribute pins when they are hovered and/or when a connection is made

Moving the mouse rapidly when starting to connect two nodes'
attributes could lead to an unwanted offset between the tip of
the edge and the mouse's position; it forced the user to move
the mouse further than the attribute pin they wanted to connect
to in order to actually be able to connect to it.
The attributes' pins are now vertically aligned with their
matching labels.
Harmonize the highlighting of the attributes' pins when they
are hovered and clicked on, may they already be connected to
other nodes or not.
@fabiencastan fabiencastan added this to the Meshroom 2022.1.0 milestone Jul 21, 2022
@fabiencastan fabiencastan merged commit 09fc117 into develop Jul 21, 2022
@fabiencastan fabiencastan deleted the fix/uiNodeConnections branch July 21, 2022 10:32
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.

2 participants