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

Doesnt appear if div is hidden #106

Open
provized opened this issue Mar 31, 2019 · 2 comments
Open

Doesnt appear if div is hidden #106

provized opened this issue Mar 31, 2019 · 2 comments
Labels

Comments

@provized
Copy link

I almost wasted hours trying to understand the issue, the problem was the plugin didnt initiate because the element was hidden on second page of one page scroll

@loup-brun
Copy link
Collaborator

Can you provide more information (code examples, with screenshots)?

Is this a bug related to Swipe, or have you fixed your implementation?

@9mm
Copy link

9mm commented Oct 15, 2021

The problem is that the swiper computes a width of zero if the div is hidden. IMO the swiper needs to operate and initialize properly even if it's hidden. There are many use cases where something needs to be initialized but not shown right away. One area where this is causing me lots of grief is a slider for mobile that initializes in the responsive desktop mode, but when the browser is resized larger, it doesn't work because everything has been initialized by swipe to 0px

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

No branches or pull requests

3 participants