-
Notifications
You must be signed in to change notification settings - Fork 345
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
Issue when adding images to an already loaded galleria when swipe is set to true (iPad) #312
Comments
I've investigated this a little more. If I disable the swipe in options: Galleria.run('#galleria', {
swipe:false
}); You can see that it starts working. http://alpha.hitched.co.uk/DemoPages/Galleria/Galleria-Fixed.htm I can see in the codebase that // we do things a bit simpler in swipe:
if ( swipe ) { I'm not 100% sure the swipe behavior has setup everything it needs to when you do a push. |
Oooo - just found that you can emulate touch events in Chrome To see - go here: http://alpha.hitched.co.uk/DemoPages/Galleria/Galleria.htm And then do this in chrome That will help work out a fix. |
Any chance you got it working ? I have exactly the same problem, I just turned off swipe and it works. |
same issue here, tried to dig in the code but i'm lost. |
I copied over and modified some code from the internal Replace the
|
Had the same issue. Modifying the |
I had the same problem. Patching the push function worked for me too, but there's one caveat: |
@davidhellsing Any chance a fix for this could be added to core? We're seeing the same issue. |
Issue is reproducible on Chrome for any type of touch devices now. Turned off "swipe" as workaround, would vote for fixing this in next releases. |
I have a demo page setup showing an issue when pushing images into an already loaded galleria.
http://alpha.hitched.co.uk/DemoPages/Galleria/Galleria.htm
For performance reasons we have 3 images on the page by default, and then we push images (up to 50) after the galleria has called it's ready event.
This seems to work fine on desktop, you can see the first 3 images, and then the later images but on iPad you can only navigate to the first 4 images. It seems in the following code snippet:
...
self._controls.slides
only has the first 3 images, and hasn't grown every time we've done a push.Any advice to get this working?
The text was updated successfully, but these errors were encountered: