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

White space appears between slides when swiping/navigating on mobile browsers #279

Open
vladimir-fsh opened this issue May 15, 2018 · 6 comments

Comments

@vladimir-fsh
Copy link

On the demo page in any iPhone try to swipe or click on next arrow. Every time a next image will appear is empty for short time (~100ms).

@xiaolin
Copy link
Owner

xiaolin commented May 15, 2018

I noticed that and it seems to only be happening on mobile browsers. I'm not sure whats going on there.

@xiaolin xiaolin changed the title Blank image in mobile browsers White space appears between slides when swiping/navigating on mobile browsers May 15, 2018
@vladimir-fsh
Copy link
Author

vladimir-fsh commented May 16, 2018

Probably it happens cause nodes of slides removed and pushed again

@xiaolin
Copy link
Owner

xiaolin commented May 24, 2018

If anyone finds the cause please reopen.

@xiaolin xiaolin closed this as completed May 24, 2018
@Multi-Thinker
Copy link

Multi-Thinker commented Jan 19, 2020

+1 it also happen on the web. the translate property adds 0% 50% 100% and so on to every slide. removing the translate fix it for me. but its a buggy hack. wonder why the translate is pushing images down. instead of a row

@Goye
Copy link

Goye commented Sep 2, 2022

I am getting the same behavior with the thumbnails, I noticed it is something related to the transform property that allows values upper the initial one. e.g transform: translate3d(15.0735px, 0px, 0px);

@xiaolin
Copy link
Owner

xiaolin commented Jul 31, 2023

Did some debugging, and this looks to be an image loading issue on mobile browsers. The problem goes away when using the same images for all the slides. Will need further investigation to determine a solution...

cannot reproduce using same images e.g.

const images = [
  {
    original: "https://picsum.photos/id/1018/1000/600/",
    thumbnail: "https://picsum.photos/id/1018/250/150/",
  },
  {
    original: "https://picsum.photos/id/1018/1000/600/",
    thumbnail: "https://picsum.photos/id/1018/250/150/",
  },
  {
    original: "https://picsum.photos/id/1018/1000/600/",
    thumbnail: "https://picsum.photos/id/1018/250/150/",
  },
  {
    original: "https://picsum.photos/id/1018/1000/600/",
    thumbnail: "https://picsum.photos/id/1018/250/150/",
  },
];

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

No branches or pull requests

4 participants