Fixed text selection and cursor hide