After the mobile terminal keyboard focus dislocation evoke

    // case resolved evoke keyboard focus positioning misalignment use Blur = @ 'blurhandler' 
    blurhandler () { 
      the let UA = window.navigator.userAgent;
       IF (!! ua.match (/ \ (I [^;] +; (the U-;)?. the CPU the Mac the OS X-+ /)) { // iOS end 
          var currentPosition, Timer;
           var Speed =. 1 ; 
          Timer = the setInterval ( function () { 
            currentPosition = || document.documentElement.scrollTop the document.body. scrollTop; 
            currentPosition - = Speed; 
            the window.scrollTo ( 0, currentPosition); // page scroll up 
            //+ = Speed currentPosition; 
            // the window.scrollTo (0, currentPosition); // scroll down 
            the clearInterval (Timer); 
          }, 100 ); 
      } 
    },

 

Guess you like

Origin www.cnblogs.com/TheHeartWants/p/11514639.html