code: function( scroll ) {
              if ( typeof ( window.scrollTo ) !== "undefined" ) {
                  $.setPageScroll = function( scroll ) {
                      window.scrollTo( scroll.x, scroll.y );
                  };
              } else {
                  var originalScroll = $.getPageScroll();
                  if ( originalScroll.x === scroll.x &&
                      originalScroll.y === scroll.y ) {
                      // We are already correctly positioned and there
                      // is no way to detect the correct method.
                      return;
                  }
  
                  document.body.scrollLeft = scroll.x;
                  document.body.scrollTop = scroll.y;
                  var currentScroll = $.getPageScroll();
                  if ( currentScroll.x !== originalScroll.x &&
                      currentScroll.y !== originalScroll.y ) {
                      $.setPageScroll = function( scroll ) {
                          document.body.scrollLeft = scroll.x;
                          document.body.scrollTop = scroll.y;
                      };
                      return;
                  }
  
                  document.documentElement.scrollLeft = scroll.x;
                  document.documentElement.scrollTop = scroll.y;
                  currentScroll = $.getPageScroll();
                  if ( currentScroll.x !== originalScroll.x &&
                      currentScroll.y !== originalScroll.y ) {
                      $.setPageScroll = function( scroll ) {
                          document.documentElement.scrollLeft = scroll.x;
                          document.documentElement.scrollTop = scroll.y;
                      };
                      return;
                  }
  
                  // We can't find anything working, so we do nothing.
                  $.setPageScroll = function( scroll ) {
                  };
              }
  
              return $.setPageScroll( scroll );
          }
docs: Set the page scroll position.
  @function
  @returns {OpenSeadragon.Point}