Adding Action button to ScrollView

I added support to ScrollView, there is just one little issue I am trying to figure out how to solve it. Maybe you may have a clue. If you scroll a bit fast, for some reason newScrollY becomes smaller than mScrollY when I am scrolling down, so at the end of the scrolling, instead of the button to remain hidden, it comes back up.

Let me know what do you think.