Set panel state axure 9

hi

when I’m doing set panel state on window scroll and i check the state NEXT it scroll all the state one after another right away instead of show only 1 at a time’ 1 at one scroll

How can I do it that in every scroll only 1 state will show?

Thnx
Gilly

The window scroll function isn’t that smart; it’s basically a boolean check: “Did the window scroll?” - “Yes. It scrolled.” There’s really no such things as, “Did it scroll again?”

You’ll have to give it a reason to return “false”. The only way I can think of is to give it “distance ranges”:

If Window.scrollX is less than 100, then set panel to “blah”
If Window.scrollX is greater than 100 and less than 300, then set panel to “blah blah”

Scroll_State_Change.rp (50.2 KB)