Problem With Down State not Clearing

Mar 22, 2024

Hi everyone, 

I'm having a problem with the down state not (always) clearing properly after the mouse is released. The down state reverts to normal/hover IF the button snaps away from the mouse on release. However, if the button stays under the mouse on release, the button stays in the down state. Hover does not work and button will not revert to normal until clicked again. I've attached an example project. This same issue has presented in two other projects and this is just a sample project that ensures there are no other variables/states that could possibly be causing a conflict. 

4 Replies
Sam Hill

Hi Matthew, I think you've found a bug there. As you say, when the mouse remains over the drag element as it returns back to it's origin, the down state remains. I would recommend reporting this issue. It looks like the mouse being over the object (and the hover state?) confuses whatever functionality is used to reset the state.

It doesn't look like there are any triggers you can add to reset the state in that circumstance as well.

Matthew Bailey

Hi again,

I wanted to post again because I think I've found a partial workaround. I set a trigger to set the button to Hover state when dropped on an of the hotspots. If the button snaps away, it clears the down state to normal (as intended, and as it was doing before). But now, if the button is dropped with the mouse still over it, the trigger sends the button to hover state. Fortunately, the hover state clearing function still works.  

I also had to add a "home" hotspot so that I could use the trigger when the button was picked up, moved slightly, and dropped again.

I'm going to try this in a more complex project to see if it works with additional triggers and more objects.