Fixed scroll wheel when hovering the scrollbars.
Some refactoring.