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

Error when zoom in #235

Open
OlivierLESAGE opened this issue Apr 10, 2023 · 2 comments
Open

Error when zoom in #235

OlivierLESAGE opened this issue Apr 10, 2023 · 2 comments

Comments

@OlivierLESAGE
Copy link

Hi,

I have purchased pro version and i have a bug when i zoom in (not with all images):

Unhandled Runtime Error
TypeError: Cannot read properties of null (reading 'classList')

Call Stack
v
node_modules/fslightbox-react/index.js (1:42194)
f
node_modules/fslightbox-react/index.js (1:41909)
p
node_modules/fslightbox-react/index.js (1:42054)
a.zh
node_modules/fslightbox-react/index.js (1:42501)
t.startZooming
node_modules/fslightbox-react/index.js (1:48696)
u
node_modules/fslightbox-react/index.js (1:39145)
n.zoomIn
node_modules/fslightbox-react/index.js (1:39232)
$e.runSourceDownEventTargetActions
node_modules/fslightbox-react/index.js (1:36041)
Je.runNoSwipeActions
node_modules/fslightbox-react/index.js (1:36557)
Ge.listener
node_modules/fslightbox-react/index.js (1:36786)
HTMLDocument.upListener
node_modules/fslightbox-react/index.js (1:37511)

I have this issue when i try to zoom in an image that is served from cloudflare CDN with a proxy, the source looks like /api/image/ac3b468a-0c53-4404-331e-591b587e9601?variant=previewlg

If i replace the source with the direct source (https://imagedelivery.net/...) it works well.

@OlivierLESAGE
Copy link
Author

Find out that the issue is caused by the next and previous button ... if I put 2 sources it works fine ...

@fbudassi
Copy link

Find out that the issue is caused by the next and previous button ... if I put 2 sources it works fine ...

What do you mean by "put 2 sources"?

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

2 participants