Allowing to disable the pan gesture