setting up a drag event so we can pan the content of the viewport