I am designing for mobile and I have my button components set up as default and pressed. For one instance of my button component, I used it to open an overlay after a delay. Then I set the overlay to “Close when clicking outside.”
When the overlay closes, I want the screen to go back to what it was before with the button showing as pressed. The issue is that since the pressed button is set to open the overlay after a delay, when I exit the overlay it goes away and then pops up again.
How can I achieve the prototyping effect I am looking for?