モバイル端末キーボードフォーカス脱臼後呼び起こします

    // ケースキーボードフォーカスの位置ずれを引き起こす解決使用ブラー= @ 'blurhandler' 
    blurhandler(){ 
      せUA = window.navigator.userAgent;
       IF(!! ua.match(/ \(I [^;] +。 (U-;)+。CPUのMac OS X- + /)){ // IOSの端
          VaRのcurrentPosition、タイマ;
           VARの。速度= 1 ; 
          タイマのsetInterval(= 関数(){ 
            currentPosition = || document.documentElement.scrollTop document.bodyを。 scrollTopスプライト; 
            currentPosition - = 速度; 
            window.scrollToは( 0、currentPosition); // ページスクロールアップ
            //+ =高速currentPosition; 
            // window.scrollToは(0、currentPosition); //スクロールダウンし
            てclearInterval(タイマ); 
          }、 100 ); 
      } 
    }、

 

おすすめ

転載: www.cnblogs.com/TheHeartWants/p/11514639.html