Resolves #39, where if the carousel advances in increments greater than one, upon wrapping-around the carousel will only move one. Fix is simply using the difference between the current and target slide to move to (instead of autoScrollBy) for relatively advancing the slides. Added a test to check if the carousel advances as much as it should post-wrap-around.
After this fix, the carousel will advance beyond the slides if you try to do something like $(".slideshow").trigger('go', '+=6'); when the slideshow only has 5 slides. I am running under the impression that adding code to "idiot-proof" this is unnecessary.
Resolves #39, where if the carousel advances in increments greater than one, upon wrapping-around the carousel will only move one. Fix is simply using the difference between the current and target slide to move to (instead of autoScrollBy) for relatively advancing the slides. Added a test to check if the carousel advances as much as it should post-wrap-around.
After this fix, the carousel will advance beyond the slides if you try to do something like $(".slideshow").trigger('go', '+=6'); when the slideshow only has 5 slides. I am running under the impression that adding code to "idiot-proof" this is unnecessary.