Clean up mousewheel event handlers to fit existing style

There are differences in the way the Firefox and all other browsers
handle mousewheel events. There are two handlers to take care of this.