-
Notifications
You must be signed in to change notification settings - Fork 30
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
selected Indicator is not working correctly on desktop #99
Comments
@nicped @misterwinther @aimeos @sasham43 anyone can provide guidance? |
Oh yes, that's right. In fact the first 4 indicators are highlighted correctly but from no 5 on it's one indicator ahead. Obviously the 5th li item in that example does not have a class attribute (unlike the others with an empty class attribute). However, this must be an issue with the demo markup. I checked back in several projects where we are using Swiffy Slider, cannot reproduce. |
@hexabinaer I am using same slider and I am having issue with desktop version. mobile version work fine. Are you sure it is not an issue with latest version? @nicped can you confirm? Also is demo broken? |
The number of indicators should match the number of pages. The test page does not take that into account. The indicators will set the active one to the page number the slider is currently on, hence the 1-4 situation. I will see if I can change the logic so it will take a percentage of pages and apply it to the indicator that matches that. But basically - just adjust the number of indicators to the number of pages. Use responsive CSS to have 2 or more sets of indicators if the number of slides per page changes with your viewport |
Describe the bug
Selecting indicator doesn't hightlight selected indicator and jump to next indicator icon. Clicking indicator five highlight 6. Clicking on 6 highight 7 and clicking on 7 highlight 8
To Reproduce
See in official view https://swiffyslider.com/configuration/?slider-item-show=slider-item-show2&slider-indicators-highlight=slider-indicators-highlight&slider-indicators-sm=slider-indicators-sm&preview-style=preview-images
Expected behavior
clicking indicator should selected current indicator
Screenshots
Additional context
Screen.Recording.2024-08-01.at.7.11.23.PM.mov
The text was updated successfully, but these errors were encountered: