sly icon indicating copy to clipboard operation
sly copied to clipboard

Problem numbers pagesBar with pageBuilder

Open dngraphisme opened this issue 4 years ago • 0 comments

Hello,

I think sly.js is worried about calculating the to give the exact number.

I currently have a pagination with 12 elements.

  • On desktop, I have 6 dots.
  • When I refresh in responsive I have 12 ....

I don't understand where this bug is coming from, does anyone have a lead ?

var $sliderCards = $('.slider-cards'), $scrollbar = $('.scrollbar'); $sliderCards.sly({ horizontal: 1, itemNav: 'basic', //itemNav: 'forceCentered', activateMiddle: true, activateOn: 'click', mouseDragging: 1, touchDragging: 1, releaseSwing: 1, startAt: 0, scrollBar: $scrollbar, scrollBy: 0, speed: 400, swingSpeed: 0.1, activeClass: 'visible', //elasticBounds: 1, pagesBar: $(".slider-cards .pagination"), activatePageOn: 'click', pageBuilder: function (index) { return '<li data-slide="' + (index + 1) + '"></li>'; }, dragHandle: 1, dynamicHandle: 1, clickBar: 1, nextPage: '.slider-cards .next', prevPage: '.slider-cards .prev', //moveBy: 400, });

Thank you

dngraphisme avatar Dec 14 '21 06:12 dngraphisme