Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you want a margin between your thumbs it will mess up the thumb scroll positioning because the margin isn't taken into account in the calcs.
To fix this I just changed line 22 of infiniteCarousel.js
From: singleWidth = $single.outerWidth(),
To: singleWidth = $single.outerWidth(true),
Comment | File | Size | Author |
---|---|---|---|
#1 | 2076685-1-singlewidth.patch | 590 bytes | kscheirer |
Comments
Comment #1
kscheirerConverted the above into the attached patch, please test it out!
Comment #1.0
kscheirerFix mistype
Comment #2
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer commentedThanks for the patch @kscheirer - it makes sense, but I wonder if would have an effect on the visible calculation that happens next.
I assume it should be ok, but I'm reluctant to get it in because I'm afraid it could break people's sites... so ideally people running this module in production would have to test it and report back if it is safe.