fix two finger pan gestures detection