fix NaN values on mousewheel events in some versions of firefox, see #46