ngx-panzoom icon indicating copy to clipboard operation
ngx-panzoom copied to clipboard

[BUG] - Not able to zoom out during initial load(beyond initial level)

Open ravik3592 opened this issue 4 years ago • 1 comments

Describe the bug When i load a image, i was not able to zoom out, but after applying zoom in, zoom out works till initial level, how to zoom out to minimum image level

Reduced Test Case I have added my code to stackblitz in below url https://stackblitz.com/edit/angular-ivy-jnbvk7?file=src%2Fapp%2Fapp.component.html

To Reproduce Steps to reproduce the behavior:

  1. Go to above link
  2. Click on zoom out, image wont zoom out
  3. click on zoom in 3 times, zoom out wont go beyond 3 times
  4. If i click Fit, it works as expected,

Expected behavior When i click on zoom out, it should zoom out to levels which i set

ravik3592 avatar Feb 17 '21 06:02 ravik3592

It has to do with the keepInBounds: true option. I think this option is either buggy or isn't implemented in a way the user would expect.

philipsens avatar Dec 24 '21 16:12 philipsens