Tools required: Javascript
Today I learnt that on some browsers you can scroll to the end of a HTML element and Javascript can report the .scrollTop to within 0.5 of the true height of the element. I discovered this when chasing down a bug with infinite list scrolling, where it would randomly stop. Clocked it would only stop when the current scroll height ended in .5. I suspect this is something to do with rounding errors for high DPI displays.
Not the best bug in the world to chase but Math.round() seems to fix it! Suppose it’s my own fault for not using type script!
Fix:
EOF