The moment I change the scrollLeft property of an element, smooth scrolling to anchor gets instantly cancelled (leaving me somewhere in the middle of the page).