I am using the very useful showEffect and hideEffect on a bunch of buttons in my UI.
The buttons are shown for a number of different events, such as TRIGGERED, SCROLL_START, SCROLL_COMPLETE; then after a period of inactivity they are hidden again.
My issue is that the show effect is interrupted and started again, even if the visible property is already true. As the above events may be dispatched multiple times in close proximity this causes the buttons to flicker.
I've tried first testing the visible property of the button and only setting it if needs to change, but this causes another issue: if the hide effect is playing, then the visible property returns as true and the hide effect is allowed to continue.
Ideally, the active effect should only be interrupted by its opposing effect. If this isn't possible, then a way to determine if a show or hide effect is pending to decide whether to set the visible property or not would be useful.