Open egunsoma opened 6 years ago
I'm not sure what you mean, perhaps the screenshots would help 😉
I suspect the problem was that if zoomable-svg is not placed to the top-left corner of the screen then the zoom focus/origin/center point is not properly calcualted. Simply, when pinching, the objects are sliping away a bit.
I think the problem is that zoomable-svg does not translate absolute (pageX, pageY) coords into relative ones. I have a fix, @msand do you accept PR-s? Here is my propsed fix: https://github.com/msand/zoomable-svg/compare/master...salacode:master
When running on Android Emulator, the focus point of the zoom is not in the middle, but on the left side of the screen. Any ideas why? :) I can post screenshots, but the code is the same as in the example.