I’m trying to program a “scroll to top” button in a prototype, but I’m not able to get it to hide when the user manually scrolls to the top. There’s a screenshot of my logic below. My problem is that I am looking to write a case that says “If the window is scrolled all the way up, hide the button”. What I have now is just the delta scroll, but I am looking for a way to express the scroll position; not the amount of scroll.
I am aware of some workarounds, such as using the area of the TOP button over a hidden item in the window, but am looking for a more elegant solution. To clarify, the problem is when the user manually scrolls up, I don’t want the button to appear until they scroll ALL THE WAY up.