Open blpraveen opened 10 months ago
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.
Can pan be restricted to only image visible?