Pointer Event issues while rotating VisualElement

Issue:
I have a Visual Element to which I have added dragging functionality. When I click on that element and drag it, it will rotate 90 degrees via script but two of the rotations cause it to lose pointer events when it is under another visual element even though that element is set to ignore pointers.

To reproduce:
Run the sample scene. Click and drag the blue element into the red area. Drag it back to the green area and let go. Repeat this for all rotations. Expected behavior is that dragging will perform the same for all rotations.

Probably related:
In TestDraggable uncomment all lines marked to uncomment and repeat the above. This will result in other odd functionality.
If you let go of the element it also will be completely removed from receiving pick events even from the debugger if PickingMode.Ignore is set while the rotation happens, even when PickingMode.Position is set later.

I have reported this as a bug(case 1360803) but wanted to alert others of these issues and Unity support, you seem to be paying close attention to this forum. Thanks!

Windows 10
Unity 2021.2.0b9.3335

7471190–917960–rotationEventsBug.unitypackage (16.4 KB)

Could this be contributing to the issue?

Thanks, I didn’t find that. It looks plausible but it is marked fixed. I wonder if it hasn’t made it into the latest update?

It looks like the alpha :frowning:

Fixed 2022.1.0a6.886

I’m investigating why no backport has been opened. Stay tuned.

EDIT: A backport case has just been opened for 21.2.

2 Likes

Wow, I am not observant. I downloaded the alpha and it seems all of my issues have been fixed.

1 Like