added enablePan() and disablePan()

added two new functions: enablePan() and disablePan() which allow the user to enable/disable the panning-functionality. Additionally, the panning is disabled by default.