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

Scroll zoom in conjunction with 'toggle' mode #68

Open
es-kan opened this issue Sep 2, 2020 · 1 comment
Open

Scroll zoom in conjunction with 'toggle' mode #68

es-kan opened this issue Sep 2, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@es-kan
Copy link

es-kan commented Sep 2, 2020

I've got an ngx-img-zoom component setup like this:

<ngx-image-zoom
    [thumbImage]="www.link-to.img"
    [fullImage]="www.link-to-full.img"
    zoomMode="toggle"
    [enableScrollZoom]=true>
</ngx-image-zoom>

My intent is to use the toggle mode to zoom to the full image, and then the scroll function to adjust the zoomAmount and the location of the zoomed-in portion.

However, it seems that scroll zoom zooms in on the component as if it was hovering over the thumbImage: if I click to toggle-zoom into the lower-left corner of the thumbImage, move the cursor to the top-right part of the currently zoomed-in fullImg and then scroll, the component displays a part of the fullImg that the cursor would have been hovering over on the thumbImg.

I hope that explanation got through correctly. It leads to quite an unintuitive user experience.

@wittlock
Copy link
Owner

wittlock commented Sep 5, 2020

I get what you're mentioning, I've encountered this as well. It's clearly an undesired behavior.

Currently life is a bit too hectic to really have a chance to put in the effort for any bigger fixes on my open source projects. I'll happily check some pull requests though. Otherwise life will hopefully settle down come fall and winter and I'll get a chance to revisit my projects and do some much needed catching up on them.

@wittlock wittlock added the bug Something isn't working label Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants