correct pinch and pan zoom