pan gesture handler returns if view array is empty