Hover effect on UIToolkit button is stuck

Hi,

I’m using UIToolkit Scrollview and a UIToolkit button.I’m using U

But I have an issue where when I start selecting a button then drag on the scrollview, then I drag down and the hover effect both gets stuck and keeps triggering each time a button hits the spot where I first started touching.

Anyone seen this issue before?

1 Like

Hey!

I am having this issue too? Hopefully someone will reply

Thanks! :slight_smile:

Hi,
What Unity version are you on? I’m not able to reproduce on our latest version. Maybe we are missing a backport to an older version.
You can send us a small project with the repro steps using Help → Report a bug…

I’m on Unity 2021.3.10f1

1 Like

I think this is the same bug I reported ages ago. I reported multiple issues with buttons getting stuck. This makes using UIToolkit impossible right now.

@griendeau_unity Is there any updates? :frowning:

https://issuetracker.unity3d.com/issues/ui-toolkit-touch-is-not-being-cleared-after-clicking-on-a-button

https://issuetracker.unity3d.com/issues/ui-toolkit-mobile-last-hovered-ui-toolkit-button-is-getting-pressed-when-its-not-being-pressed

https://issuetracker.unity3d.com/issues/hover-gets-stuck-when-using-touch-and-setting-the-button-display-to-none-and-then-flex

1 Like

Looks like these issues could all be related to the same thing yes. I can see they were assigned to someone in the team.

1 Like

Do you know a timeline when it should be fixed? It seems like a critical bug but hasn’t any movement for months. It breaks UI with buttons getting stuck.

We don’t have an ETA for it, but I talked with the dev and the work on the bugs mentioned above was started and we have fixes for them, but there was a more pressing issue to handle for the 2023.1 release, so he couldn’t properly finish this work. He should be coming back to it soon-ish, stay tuned!

3 Likes

Awesome news, thanks!

Is there any news? I cannot find a way around this bug and its a game breaking bug for me.

+1. This really needs to be fixed please. Makes it impossible to build a game on mobile with this issue.

It has been over 6+ months. Please! Why are other features being released when such a vital aspect of UIToolkit is broken?

Is there going to be a fix soon? Hover getting stuck is killer on mobile. :frowning:

Hi Tom,

Just letting you know that we hear your complaints and that we agree on the importance of fixing those bugs as soon as possible. The touch vs hover bugs are well known and near the top of our list. It’s hard to promise any ETA that we can be sure to honor, because bug prioritization is a very dynamic process, but I assure you that I’m circling back to this one regularly. Hopefully we can give you good news soon.

2 Likes

Hi,

I’m investigation the issues mentionned by @MousePods . After looking at:

The issue seams to be that the “button-diamond” is still visible even if the image in it has been translated down. You can see it using the UI Toolkit Debugger:

I’ll be looking at the other two issues and post my findings.

1 Like

Thanks for looking into this! Were you able to see the other two bugs?

Is there any news on this? Is there any issue tracker link I can follow to see if its fixed?

1 Like

Just bumping this. Wondering if this is still a high priority? The button on mobile will still get stuck in the :hover state. Is this going to be fixed on 2022.3 LTS soon? I had a workaround, but now that workaround is not working after updating to 2022.3 because of another issue:

I just seem to not be able to get a solution to this and it’s been almost a year. :frowning:

Just bumping this after the holidays. Still an issue.

Hey @MousePods . The issues are still in our grab bag. I can’t give an ETA but we’ll get to them eventually.

1 Like

So I am using this to set the hover effect, but rotation seems to change the location of the hover, which might be an issue in the difference between a Windows over and an Android focus. What do you think? Added a zipped video with uxml and uss files. :slight_smile:

9576679–1355632–0000-0151.zip (336 KB)

1 Like