js/lightbox.js
function repositionControls() {
    if (CTX.opt.responsive && nextBtn && prevBtn) {
      var btnTop = (getHeight() / 2) - (nextBtn.offsetHeight / 2);
      nextBtn.style.top = btnTop + 'px';
      prevBtn.style.top = btnTop + 'px';
    }
  }
function repositionControls() {
    if (CTX.opt.responsive && nextBtn && prevBtn) {
      var btnTop = (getHeight() / 2) - (nextBtn.offsetHeight / 2);
      nextBtn.style.top = btnTop + 'px';
      prevBtn.style.top = btnTop + 'px';
    }
  }
function repositionControls ( ) { if ( CTX . opt . responsive && nextBtn && prevBtn ) { var btnTop = ( getHeight ( ) / 2 ) - ( nextBtn . offsetHeight / 2 ) ; nextBtn . style . top = btnTop + 'px' ; prevBtn . style . top = btnTop + 'px' ; } }
Moves controls to correct position
Moves controls to correct position