Maintaining the scroll position (scrollTop): Slows down when scaling the last Chrome. Bug?

I keep the scroll position on the web page, as the browser automatically changes the position due to DivX AJAX updates. For some odd reason, scrollTop () behaves differently in Chrome and scrolls to the wrong position.

var previousLocation = $(window).scrollTop(); // returns, for example, 240

// ....Update div with data from an AJAX call

$(window).scrollTop(previousLocation); // goes to 239 in Chrome instead of 240????

This works great with all browsers when the zoom level is 100%. However, other zoom levels, such as 90%, cause stuttering (scrolling goes up and down a bit) in the last Chrome (36.0.1985.143 m). However, it works with the latest versions of Firefox (31.0) and IE 11.

Any comments or similar results from anyone?

+4
source share

All Articles