Fixed pan gesture transform issue