Skip to content

Conversation

@bbrvi2008
Copy link

Hi Sylvain,

I added the PrismaZoom to my webapp and I have an issue when I scroll my page. Scrolling the page does not work if the pointer is over an area that can be zoomed in. This happens because the default action for the wheel is canceled. I propose to override the default action only if the image is scaled.

Thanks

@bbrvi2008
Copy link
Author

Also add a change to allowZoom, allowPan, allowWheel in runtime. so that you can dynamically enable scaling.

@sylvaindubus
Copy link
Owner

Hello Denis. Sorry for this insane delay. Your changes make sense but could affect quite a lot of behaviour on current implementations. I could set a disclaimer in the readme about them. But I wonder why you would need to override these styles?

@rgrygiel
Copy link

rgrygiel commented Aug 8, 2023

hi @sylvaindubus
any other idea how to tackle issue with no possibility of scrolling through the page when allowWheel is set to false? Maybe this PR can be merged and released in some rc version by any chance?

Regards.

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

Successfully merging this pull request may close these issues.

3 participants