Modified mousewheel event to make vertical scrolling possible in Mac OSX