fixed "document click" bug on ios