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

[limitZoom]="number" not working ivy-pinch-pro-1.4.0 #99

Open
danday74 opened this issue Dec 22, 2021 · 0 comments
Open

[limitZoom]="number" not working ivy-pinch-pro-1.4.0 #99

danday74 opened this issue Dec 22, 2021 · 0 comments

Comments

@danday74
Copy link

Setting [limitZoom]="number" does not work on ivy-pinch-pro-1.4.0

My code by necessity is complex. Here's the key parts:

<pinch-zoom #pinch="pinchZoom" disableZoomControl="disable" [transitionDuration]="200" (events)="handlePinchZoomEvent($event)" (wheel)="handlePinchZoomEvent($event)"> <video ...> </pinch-zoom>

I want to use [limitZoom]="number" but it does nothing.

As a workaround, I have had to add an absolutely positioned image inside the tag - this correctly restricts zoom but it makes my code far more complex than it needs to be since I have to generate an appropriate image that will restrict zoom according to the dimensions of the video.

I appreciate pinch-zoom was not meant for video but generally speaking it does a good job of allowing zooming in on a video. This is one of the problems I am facing however.

Any thoughts? Thanks in advance

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

1 participant