Open dngraphisme opened 2 years ago
Hello,
I think sly.js is worried about calculating the to give the exact number.
I currently have a pagination with 12 elements.
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
Hello,
I think sly.js is worried about calculating the to give the exact number.
I currently have a pagination with 12 elements.
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