docs: function(scaleVal) {
  
          var image = _this.core.outer.querySelector('.lg-current .lg-image');
          var _x;
          var _y;
  
          // Find offset manually to avoid issue after zoom
          var offsetX = (window.innerWidth - image.clientWidth) / 2;
          var offsetY = ((window.innerHeight - image.clientHeight) / 2) + (document.documentElement.scrollTop || document.body.scrollTop);
  
          _x = _this.pageX - offsetX;
          _y = _this.pageY - offsetY;
  
          var x = (scaleVal - 1) * (_x);
          var y = (scaleVal - 1) * (_y);
  
          utils.setVendor(image, 'Transform', 'scale3d(' + scaleVal + ', ' + scaleVal + ', 1)');
          image.setAttribute('data-scale', scaleVal);
  
          if (_this.core.s.useLeftForZoom) {
              image.parentElement.style.left = -x + 'px';
              image.parentElement.style.top = -y + 'px';
          } else {
              utils.setVendor(image.parentElement, 'Transform', 'translate3d(-' + x + 'px, -' + y + 'px, 0)');
          }
  
          image.parentElement.setAttribute('data-x', x);
          image.parentElement.setAttribute('data-y', y);
      }