NickPiscitelli/Glider.js

glider-slide-visible called sporadically

tsanstef opened this issue · 2 comments

Hi, I observed a strange behavior related to the glider-slide-visible event. Whenever slidesToShow is set to an integer 1,2,3,4.., the event does not get always fired when scrolling/dragging. When I change the slidesToShow to a float (with a sufficiently large decimal, say min .05, for example slidesToShow=1.1), I get the even reliably. It seems to me that unless the slide's size is less than 100% the width of the slider, one will not always get 'glider-slide-visible' when dragging/scrolling the slides.

And as a result, I cannot rely on this event :(. Is this a known issue or maybe there is a 'trick' that I am not aware of?

I am using version 1.7.8.

Are you able to provide a codepen reproducing the issue?