Added support for dragging.
Used left mouse button to drag and right to zoom.