Forum Discussion
Problem With Down State not Clearing
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.
- SamHillSuper Hero
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.
- MatthewBailey-8Community Member
Thanks, Sam! I'll submit a bug report.
Great call opening a support case, Matthew! I'm glad that my colleague Darwin was able to help and add your voice to this bug report.
Thanks for sharing your workaround in the meantime. I'm sure it will be helpful to folks who come across this post in the future!
- MatthewBailey-8Community Member
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.