I refresh a region (grid) in js. That causes the page to go to scroll position 0 and I would like to maintain users scroll position. I can do that by scrolling to users position after a delay but that causes flickering. refresh does not appear to return a promise. Is there another way to optimize this to avoid (reduce) flickering?
var scrollTop = $(window).scrollTop();
apex.region(listId).refresh();
setTimeout(function () {
$(window).scrollTop(scrollTop);
}, 50);
Thanks in advance.
Kind regards
Soeren D.