Hang in ios micro-channel client experience, input misplaced

1. The mobile terminal device is determined

// processing micro-channel iOS client pop down from a closed state after the input element input page offset solutions 
        var UA = window.navigator.userAgent.toLowerCase ();
         IF (/iphone|ipod|ipad/i.test(navigator .appVersion) && / MicroMessenger / i.test (UA)) { 
            document.body.addEventListener ( 'focusOut', () => { 
                the window.scrollTo ({Top: 0, left: 0, behavior: 'Smooth' }) 
            }); 
        }

Guess you like

Origin www.cnblogs.com/huanghuali/p/12214505.html