This is a fix to the issue #828
known issue:
The viewBox attribute of the patchsvg resets its x and y to zero when, start panning again and when add a new object to the canvas. Should save the previous x and y instead.
@jwilkes @aggraef @ico Could you please review this.