Properly determine if mouse cursor is over selection in all cases