fixed inconsistent scrolling amount when using various scrolling methods as well as scrollbar detection logic