Added functionality to disable pan gesture (I don't know why you would,
but I won't judge if you do.)