Android Button Click events seem to notify other buttons

I tested on a real device and found that when I open the media list interface, the playback interface is also opened most of the time. It is normal when in the editor

Unity Ver: 2021.1.0b3
UIToolkit Ver: 1.0.0-preview.14

6883538--804233--upload_2021-2-27_18-40-32.png

My temporary solution,Annotate the SendInputEvents method call in DefaultEventSystem.Update
6894104--806486--upload_2021-3-3_1-8-9.png

I had similar weird offset issues with touch inputs

Since you’re tweaking the package directly, you can try to edit the lines from (Default)EventSystem that I mentionned in this post. On our side, it was enough to fix these issues.

1 Like

Thanks, I’ll try it later, I’m going to bed now

Thank you very much, your solution still works in preview 14

1 Like

You’re welcome !
You can track the issue here (case 1288368)

1 Like

ok

Sorry for that, guys, we know about that issue and how to fix it, and we do have the fixed code lying around, have had it for quite some time now, but it’s unfortunately not released in any preview of the package yet. The reasons for that are… complicated, but let’s just say, we have it under control, it’s going to come in a future update of the package, and sorry again for the super long delay :-/

If you have the package source checked out locally, you can definitely edit it, the fix posted here is good and does the job perfectly. Thanks for opening the issue and reminding us that there are many people waiting for that fix, it generally helps for prioritizing the bits that go in in future updates and the bits that don’t.

2 Likes

I found today that using your way although the button is not triggered in error, but ContainsPoint method can not be accurately judged, so I am still commented SendInputEvents call, if you use the ContainsPoint method, then you need to pay attention to

6902345--808073--upload_2021-3-5_3-38-36.png

He will always return false, resulting in the closure of

Looking forward to the next version update!