You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling api.zoomOut() initially works, but then right afterward calling api.zoomIn() does not do anything. Calling api.zoomIn() initially actually causes it the image to zoom out.
It behaves as expected with { initialZoomLevel: 3 }, but not with { initialZoomLevel: 5 }
Expected behavior
I expect api.zoomIn to always Zoom In at up to some limit (e.g. initial zoom).
I expect to be able to get back to the initial zoom level by using api.zoomIn.
Screenshots
Not applicable
Desktop (please complete the following information):
OS: Ubuntu 20.04
Browser: Chrome
Version: 114.0.5735.198 (Official Build) (64-bit)
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
vicatcu
changed the title
[BUG] - Bug Name Goes Here
Zoom In / Zoom Out API calls don't behave as expected
Jul 20, 2023
vicatcu
changed the title
Zoom In / Zoom Out API calls don't behave as expected
Zoom In / Zoom Out API calls don't behave as expected depending on initialZoomLevel
Jul 20, 2023
Describe the bug
With the following configuration:
Calling
api.zoomOut()
initially works, but then right afterward callingapi.zoomIn()
does not do anything. Callingapi.zoomIn()
initially actually causes it the image to zoom out.It behaves as expected with { initialZoomLevel: 3 }, but not with { initialZoomLevel: 5 }
Reduced Test Case
https://stackblitz.com/edit/ngx-panzoom-test-10-2-s6zgpf
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect api.zoomIn to always Zoom In at up to some limit (e.g. initial zoom).
I expect to be able to get back to the initial zoom level by using api.zoomIn.
Screenshots
Not applicable
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: