Search Unity

Bug ShowAsDropDown Right-click not working 2020

Discussion in 'UI Toolkit' started by Timboc, Sep 24, 2020.

  1. Timboc

    Timboc

    Joined:
    Jun 22, 2015
    Posts:
    238
    If an EditorWindow is shown via ShowAsDropDown, both right-click & middle click are not detected using e.g:
    Code (csharp):
    1. rootVisualElement.RegisterCallback<ClickEvent>(ce => Debug.Log("Clicked: " + ce.button));
    Left-click is detected fine.
    For 2019.4 RegisterCallback<MouseDownEvent>() works fine for both.
    I believe this should work and does not (tested 2020.1.2f1 & 2020.2.0b2).
    Is there any work-around in the meantime?
    Many thanks in advance.
     
  2. uMathieu

    uMathieu

    Unity Technologies

    Joined:
    Jun 6, 2017
    Posts:
    398
    Definitely sounds like a bug. Can you file a report using the Menu Help > Report a bug?