Implement mouse panning.
Simplify zoom-on-wheel-scroll code.
Fix mouse wheel zoom in Firefox.