Hi,

   I have an idea, what do you think about adding this in line 7 after var dir?

window.addEventListener('localized', function localize() {
  dir = document.documentElement.dir === 'rtl' ? -100 : 100;
});

  So you don't need to modify the updatePaginationBar method and avoid more code in panning time