I am using phrogz\'s solution for zooming and panning. Basically for a drawing pad.
The issue is, after zooming and panning, the mouse movement and the drawing movement h