Use scroll to zoom, Shift+scroll (or horizontal scroll) to pan.
Source code