set focus() only if it wasn't scrolled, selection and type=email throws errors