add support for enable or disable Pan Gesture