ipad pan detection corrected