fix pan and pinch