Tried to stop the screen from flashing on click on ios