ScrollPane: fixed checks for floating point equality.

Not even sure if this is a real issue for the specific case, but generally speaking it's safer to compare for equality within some range when calculations are involved.