Added the functionality to allow of One or Two finger panning.