Forum Discussion
Base layer object appears on layer even if deselected in timeline
A base layer object is showing up on other layers even though it is deselected in the timeline for that layer. It shows up after about 3 seconds. I've attached the example. I'm not sure if it's the triggers and variables associated with the object?
2 Replies
- JudyNolletSuper Hero
Weird! That's definitely "unexpected behavior." In other words, there seems to be a bug. It might be related to the triggers that change the ovals to the hover state when the corresponding hotspot is hovered, especially since they start in the Disabled state. Perhaps when the hover state goes away, that somehow shows the oval under the layer, even though it's supposed to be hidden?
- You'd need to submit a case to the staff to determine if that really is the problem.
The good news is that you could solve the problem by simplifying the slide, as shown in the edited slide in the attached file.
- Don't use hotspots. Instead, show the appropriate layer when the user clicks an oval. That lets you take advantage of the built-in states. The ovals will automatically display the Hover state when the user mouses over them. And, when clicked, an oval will automatically change to Visited. (I gave the ovals a Visited stated instead of Selected. I think that makes more sense, since the state indicates the user has visited that layer.)
Other things I did to the slide:
- Deleted triggers that changed variables.
- Added a trigger that disables NEXT when the timeline starts with conditions that check whether any oval does not equal Visited.
- Added a trigger that enables NEXT when all of the ovals are in the Visited state.
- NedimCommunity Member
I would remove the Hover state from all Ovals and make the Normal state look exactly like the current Hover state. Then, I would adjust the triggers to toggle the Oval’s Disabled state when the user hovers over the Show Layer hotspot.
This problematic behavior can be reproduced consistently, not only in your project, but in any other project, with or without hotspots. The actual problem is that the Hover state of the object on the base layer remains active while the other layer is being displayed. In your case, when you open the layer, the Feedback Master applied to that layer has no fill, and the Content Body shape is semi-transparent. Your mouse is still positioned over the Show Layer hotspot on the base layer, which has a trigger configured to restore the previous state. At that point, the Oval may be hidden in the layer timeline, but its Hover state is still active. As soon as you move the mouse away from the hotspot, the hover-out event is triggered and the Oval's state changes back/restores. Because of the way the layers and z-index are stacked, the Oval then becomes visible again and reappears in the layer.Another workaround would be to make the Content Body 100% opaque. This would prevent the Oval from being visible through it, even if the Oval becomes visible again.
So the key issue is that the Hover state is still active and is waiting for the hover-out event to change the Oval's state. To prove the point, uncheck “Restore previous state when the user hovers out", and the issue will also disappear. Removing the Hover state and using a toggle for Disabled eliminates the dependency on hover-in/hover-out behavior.
Anyway, I’ve attached my version for your review. I tried not to alter your original idea, aside from reverting the oval object states and adjusting the existing “when the user hovers over” triggers.