Improvement to calculation for whether to scroll the view or not