Open longtengz opened 1 year ago
We were previously using vue2-infinite-viewer (a version prior to this change https://github.com/daybrush/infinite-viewer/commit/ea62972f118ad87d1388fec33e110539c4feee03). And we only need to set zoom.
zoom
But when we update to the newest version of vue3-infinite-viewer (which has the zoomX and zoomY change), setting zoom alone does not work as the style shows that scale is still (1, 1) which contradicts with our value 0.75 for zoom.
zoomX
zoomY
(1, 1)
0.75
After some digging, I saw this change https://github.com/daybrush/infinite-viewer/commit/ea62972f118ad87d1388fec33e110539c4feee03 , and found that upon rendering it's using zoomX=1, zoomY=1. So I pass in zoomX=0.75and zoomY=0.75 alongside with zoom=0.75, and voila it works.
zoomX=1, zoomY=1
zoomX=0.75
zoomY=0.75
zoom=0.75
However, when reading the documentation it clearly says do not use them together,
If you use the zoom property, don't use the zoomX and zoomY properties.
so I think there's something wrong with the implementation.
@longtengz I checked and it works fine.
It is my intention to use only zoom or only (zomX, zoomY).
Is there a demo I can check out?
We were previously using vue2-infinite-viewer (a version prior to this change https://github.com/daybrush/infinite-viewer/commit/ea62972f118ad87d1388fec33e110539c4feee03). And we only need to set
zoom
.But when we update to the newest version of vue3-infinite-viewer (which has the
zoomX
andzoomY
change), settingzoom
alone does not work as the style shows that scale is still(1, 1)
which contradicts with our value0.75
forzoom
.After some digging, I saw this change https://github.com/daybrush/infinite-viewer/commit/ea62972f118ad87d1388fec33e110539c4feee03 , and found that upon rendering it's using
zoomX=1, zoomY=1
. So I pass inzoomX=0.75
andzoomY=0.75
alongside withzoom=0.75
, and voila it works.However, when reading the documentation it clearly says do not use them together,
so I think there's something wrong with the implementation.