I am currently implementing a multiplayer text chat system using a scrollbox. What I am trying to do is have the scrollbox auto-scroll to the bottom when a new message is posted in the chat, but only if the user is already scrolled all the way down (or within 5 scroll units), I am determining this by comparing the scroll offset with the desired size. The problem is that if the user scrolls down all the way using the scroll wheel, the scroll offset will only reach a value that is around the desired size - 200, while if they scroll down by dragging the scroll bar with their mouse, the scroll offset will reach a value of around the desired size - 1. This means that my system works fine if
http://puu.sh/jWSjX/3a03b4b445.png
As you can see in the picture, I am printing the desired size and the scroll offset every frame. What I am doing to test this is adding a bunch of children to my scroll box until a scroll bar shows up, and then testing. I am scrolling down all the way with my scroll wheel and taking note of my printed offset, now I am scrolling down by dragging the scroll bar, and noting down my value. These two values are different for me, which causes a problem. I was able to reproduce this in both 4.8 and 4.9, I am really hoping that this will be fixed soon, are there any other workarounds to get a value of the scroll position?