Pan gestures improvements