Fix pinch and drag gesture, implement rotation.