Correct midpoint calc for scrollpane