Implement precise mouse wheel handling and pinch-to-zoom on Mac.

r? @brson