You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would be able to zoom and unzoom under the scale 1 but when I do the center changes during the pinch, here is a video illustrating my problem : https://www.youtube.com/watch?v=oIbkWjXwlLQ
Hello,
I copy my request from the github here : https://stackoverflow.com/questions/52129470/pinch-to-zoom-to-the-center-with-an-ionic-component
I have simplified this component which permits to zoom into images : https://www.npmjs.com/package/ionic2-zoom-area
I would be able to zoom and unzoom under the scale 1 but when I do the center changes during the pinch, here is a video illustrating my problem : https://www.youtube.com/watch?v=oIbkWjXwlLQ
I made a github with only the components/zoomable-area which has a problem and my page I want to zoom correctly : https://github.com/Sulorb/Canvas-zooming-test
I think the problem is from this function which doesn't give the good (x,y) coordinates of the center :
In the original plugin the code was :
But I noticed the "compensation" variable was even worst for zooming under scale 1
Could someone know how to zoom correctly into the center of the pinch ?
The text was updated successfully, but these errors were encountered: