Skip to content
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

Problem numbers pagesBar with pageBuilder #307

Open
dngraphisme opened this issue Dec 14, 2021 · 0 comments
Open

Problem numbers pagesBar with pageBuilder #307

dngraphisme opened this issue Dec 14, 2021 · 0 comments

Comments

@dngraphisme
Copy link

dngraphisme commented Dec 14, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant