In Firefox use wheel instead of DOMMouseScroll event. DOMMouseScroll is non standard anymore. It fixes scrolling issues with trackpad in Firefox.