Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ravik3592 opened this issue Feb 17, 2021 · 1 comment
Open
Assignees

Comments

@ravik3592
Copy link

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

@philipsens
Copy link

philipsens commented Dec 24, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants