Your Cart

possible bug found in carousel scrolling

These forums are now closed to new replies / tickets.

Please open a support ticket from our new Support page.

Front Page Forums Problems possible bug found in carousel scrolling

  • gravatar
    Floris
    October 7, 2014 at 7:19 am

    While using the classic theme on mobile, and scrolling the
    carousel using the arrow button, the carousel sometimes get stuck.
    This only happens in portrait mode, when 2 thumbnails fit exactly
    on the screen. suspected code:

                carousel.next.on('click:fast', function(e) {
                    e.preventDefault();
                    if (self._options.carouselSteps === 'auto') {
                        for (i = carousel.current; i < carousel.hooks.length; i++) {
                            if (carousel.hooks[i] - carousel.hooks[carousel.current] > carousel.width) {
                                carousel.set(i - 2);  <--
                                break;
                            }
                        }
    
                    } else {
                        carousel.set(carousel.current + self._options.carouselSteps);
                    }
                });
    

    This way, the new carousel position is set to the same image it
    was..


Galleria.io uses cookies to store information. You can read more about that in our Privacy Policy. I understand