code: function fixPosition ( $elem, cssOffset ) {
              var visualTop = window.visualViewport ? window.visualViewport.pageTop : Math.max( dde.scrollTop, body.scrollTop ),
                  visualLeft = window.visualViewport ? window.visualViewport.pageLeft : Math.max( dde.scrollLeft, body.scrollLeft );
  
              $elem.css( {
                  top: visualTop + cssOffset.top,
                  left: visualLeft + cssOffset.left
              } );
          }
docs: Faking "position: fixed" with Javascript. position:fixed didn't work as intended in Chrome on Android, hence the hack.