Add support for mouse dragging and zooming