panzoom icon indicating copy to clipboard operation
panzoom copied to clipboard

Pan restrict only to image view

Open blpraveen opened this issue 8 months ago • 1 comments

Can pan be restricted to only image visible?

blpraveen avatar Dec 12 '23 14:12 blpraveen

If I'm understanding your issue correctly, I have the same issue here- I want users to only be able to pan when zoomed in. I tried setting the bounds to

{
  left: svg.width.baseVal.value,
  right: 0,
  top: svg.height.baseVal.value,
  bottom: 0,
}

which does prevent me from panning while zoomed out... but it also prevents me from zooming in.

hopperelec avatar Mar 21 '24 14:03 hopperelec