Search Unity

Bug [Beta 2021.2.0b2] WheelEvent do not receive modifiers change

Discussion in 'UI Toolkit' started by Maverick, Jul 5, 2021.

  1. Maverick

    Maverick

    Joined:
    Dec 18, 2009
    Posts:
    138
    Hello,

    After migrating to beta, I've noticed that WheelEvent behaves differently.

    1. Modifiers and all related bool properties never change. I've checked MouseMove and MouseUp events and they work as expected.
    upload_2021-7-5_9-31-3.png

    2. WheelEvent do not change mouseDelta property. Saw a new property - delta that is different from how it worked in 2021.1.

    Is all above intended, or those are regression bugs?

    Thanks.

    EDIT: Submitted a bug report for modifiers issue - Case 1347855
     
    Last edited: Jul 5, 2021
  2. jonathanma_unity

    jonathanma_unity

    Unity Technologies

    Joined:
    Jan 7, 2019
    Posts:
    160
    Thanks for the bug report, we will look into it.
     
  3. Maverick

    Maverick

    Joined:
    Dec 18, 2009
    Posts:
    138
    @benoitd_unity , @jonathanma_unity

    Hello,
    So, the bug (1347855) was fixed. But, it was fixed in 2022.1.0a7 only. For our project this bug is a "game-breaker". We cannot switch to or test current beta because of it.

    The question is, is there any plans to backport the fix to unity 2021.2 (UIToolkit)? Otherwise, at least for us, next unity version will be unusable and that is disturbing, as next version have really nice features/optimizations.

    Thanks.
     
  4. AlexandreT-unity

    AlexandreT-unity

    Unity Technologies

    Joined:
    Feb 1, 2018
    Posts:
    194
    Hi @Maverick, sorry for the delay. A backport is planned for 2021.2, but we haven't tackled it yet. I surfaced the issue internally to ensure that someone addresses it asap. Say tuned.
     
    Last edited: Sep 8, 2021
  5. Maverick

    Maverick

    Joined:
    Dec 18, 2009
    Posts:
    138
    Thank you!
     
  6. AlexandreT-unity

    AlexandreT-unity

    Unity Technologies

    Joined:
    Feb 1, 2018
    Posts:
    194
    @Maverick the fix has been backported to 2021.2.0b14
     
    Maverick likes this.
unityunity