Fixed a bug in scroller code related to mouse wheels