[Bug] Double-click to maximize sometimes triggered on right click.

NodeCanvas Forums Support [Bug] Double-click to maximize sometimes triggered on right click.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14844
    guyboots_thunderbro
    Participant

    I have a mouse that has a problem (it sometimes triggers a double right-click). This causes NodeCanvas to crash Unity, because the maximize happens as a context-menu or node search is starting to show up and that makes Unity unhappy. It’s due to this line of code in GraphEditor.Events:

    if ( e.type == EventType.MouseDown && e.clickCount == 2 )

    It should be:

    if ( e.type == EventType.MouseDown && e.clickCount == 2 && e.button == 0 )

    to prevent any other double-clicks from triggering it.

    #14848
    Gavalakis
    Keymaster

    Hey,
    Thank you for the fix 🙂
    I’ve just made this change for the next version.

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.