Forum Discussion
RobbieChristian
4 years agoCommunity Member
Multiple Answer Quiz - Trouble with Hover vs. Selected States
See the attached video and .story file.
In a nutshell, my hover states are trumping my selected states on 5 of the six options. This means when the mouse is hovered over a selection (before, duri...
JudyNollet
4 years agoSuper Hero
Hi, Robbie,
You're not doing anything wrong. You're just witnessing how a Hover state works. It will always show on rollover, because that's what it's built to do.
One fix:
- Create a custom state that looks like your Hover state but that isn't called "Hover." (In other words, you don't want the object to have a built-in Hover state.) For this example, let's call it HoverLike.
- Create a T/F variable with a default value of False. For this example, let's call it HoveringOff.
- Add a trigger that changes the object's state to HoverLike on mouseover with the condition that HoveringOff = False. Like this:
- Add a trigger to the object that toggles the value of HoveringOff when the user clicks the object. That'll make the variable True when selected and False when deselected.
Note that the user will still need to move the mouse away from the object after clicking it to let the object make the change to Selected. That's because the custom hover is still in effect when the user clicks. Again, that's just how things work. (And it's one reason I don't like Hover states.)