Prevents unpredictable scrolling behavior when the currentScrollLeft value is zero.