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] Paste nodes at the center of the Graph Editor when it does not contain the mouse #1788

Merged
merged 1 commit into from
Oct 10, 2022

Commits on Oct 3, 2022

  1. [ui] Center pasted nodes in GraphEditor when it does not contain the …

    …mouse
    
    When using the Edit > Paste menu, or when pressing Ctrl+V while the Graph
    Editor has the focus but the mouse is not contained in it, there is no
    current mouse position in the GraphEditor so the position that is provided
    to the "pasteNodes" function is the last known mouse position, which is
    oftentimes on the border of the GraphEditor.
    
    This commit automatically sets the mouse's position to the center of
    the GraphEditor, and "builds" the zone containing the pasted nodes around
    it.
    cbentejac committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    021770a View commit details
    Browse the repository at this point in the history