Added support for enable or disable Pan Gesture