Open 2 new separate preview windows from above sandbox
Open Developer Tools in only one preview window. This is to change width of view port. Any other means to change view port can be also used.
Toggle value of const doInConsistentZoom = false; near line no-28.
a. For const doInConsistentZoom = true; both different sized window will zoom in and align at different points.
b. For const doInConsistentZoom = false; both different sized window will zoom in and align at same points.
Bug: https://github.com/retyui/react-quick-pinch-zoom/issues/58 Demo: https://codesandbox.io/s/react-quick-pinch-fix-58-5wfgm6?file=/src/App.js:927-1635 How to re-create issue:
const doInConsistentZoom = false;
near line no-28. a. Forconst doInConsistentZoom = true;
both different sized window will zoom in and align at different points. b. Forconst doInConsistentZoom = false;
both different sized window will zoom in and align at same points.