Added drag to pan functionality to the main window. Seems to work well.