infinite-viewer
infinite-viewer copied to clipboard
is there a way to zoom only the X axis?
I need to create a timeline with infinite scroll and ability to zoom. but the zoom is only needed for the x direction so all the components height will be kept. is there a way to do it?
@pavel1860
I will add zoomX and zoomY functions in the next update.
do you have any estimate when will it be?
@pavel1860
maybe 4 days?
@pavel1860
infinite-viewer's new version is released.
If you use pinch, use pinchDirection: "horizontal".
Also, zoomX
exists in the `pinch event property,
onPinch={e => {
console.log(e.zoomX);
}}
viewer.zoomX = 1.5;
thanks! I wil check it out