properly handle the pan gesture