Added support for panning on mobile devices.