Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

(fix) Avoid sometimes throwing the exceptions when the image list is … #141

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

charles-liang
Copy link

I'm using nuxt content to render the page and sometimes it throws an exception that the childnodes are empty, which causes my whole page to go blank.

I not sure how to trigger, maybe the page hasn't finished loading yet, but I mouse clicked around

I've added a way to avoid throwing this exception by determining in advance if the childnode is empty

@charles-liang
Copy link
Author

image

@charles-liang
Copy link
Author

The second commit is to fix that

when the viewer is closed, but the startSwipe function is triggered, and the imgIndex is null.

it will cause the continueSwipe to be triggered automatically, at next openning the viewer. because the isDraggingSwipe set to true at last time but imgIndex was null, and endSwipe not called to make the isDraggingSwipe false.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant