After a pinch and zoom, the image (graph) moves slightly outside where it was before the zoom ended.
I noticed if you quickly move your fingers away at the end, it does not happen.
Which means, it is because one finger lifts before the other and the last finger on screen is interpreted as a span, shifting the image.
How can that be fixed?
At the end of the interaction (pinch and zoom) wait for both fingers to be out of the screen.
....