check necessary controller to disable pan gesture