Scroll_top (in PaginateButtons) not working?

I have on PF-BITS Jobs – PF-BITS a loop with a PaginateButtons block like this:

<PaginateButtons scroll_top=true scroll_animate=1000 />
  <PaginateFields>
    Seite <Field current_page /> von <Field total_pages />
</PaginateFields>

Unfortunately the scroll_top option is not working properly. The page is not scrolling up. Is there a way to fix this?

Besim

2 Likes

I can confirm the issue

Any Updates to this?

Btw. A small script that fixes the issue:

// Select the target node.
var target = document.querySelector('.YOUR-PAGINATED-ELEMENT > div')
// Create an observer instance.
var observer = new MutationObserver(function(mutations) {
  $([document.documentElement, document.body]).animate({
    scrollTop: $("#YOUR-TARGET").offset().top
  }, 2000);
});
// Pass in the target node, as well as the observer options.
observer.observe(target, {
  attributes:    true,
  childList:     true,
  characterData: true
});