trying out the rotation problem.
condition added in gesture pan
rotation done.