change pan gesture should recognize logic