daybrush / infinite-viewer

Infinite Viewer is Document Viewer Component with infinite scrolling.
https://daybrush.com/infinite-viewer/
MIT License
296 stars 33 forks source link

Pinch-scroll-zoom within boundaries ? #60

Open cyhnkckali opened 1 year ago

cyhnkckali commented 1 year ago

rangeY=[0,...] rangeX=[0,...] at Infinit Scroll

When I put a 3000px,4000px html design in the show area, I scale and place it according to the screen width. But I want to do this, When I zoom in, my design stays in the centre of the page unless my width dimension exceeds the width dimension of the screen.

You can think of it as a kind of map?

Where I'm having trouble is when specifying the right border of rangeX or rangeY, my content is left justified.

Is there any way to do this?

VUE 3

cyhnkckali commented 1 year ago

Example https://codesandbox.io/p/sandbox/agitated-tdd-pwgcf6

cyhnkckali commented 11 months ago

@daybrush help me Please =)