pan gesture reset on phone shake working