Copying slides makes trouble when you are using id's in your slides.
You're right, I have been giving this some thought lately. Looking for a better approach that might involve moving slides around instead of duplicating slides.
Suggest using detach() then append()/appendChild()
Detach keeps all bindings intact while you move the item around.
That would work, sure. I was also thinking about adding position: relative; and left: XXpx to each slide and then changing the left value to move slides around. That would mean that there is no instance in time where the slide is removed from the DOM. But, I'll have to check and see which method would use less processing.
Well moving the slide with css is probably a better option than removing and adding again, the only problem is that you will run into the case where the slides are in a different order on screen than in slider's list of nodes. It would be good for performance using that approach too, moving divs with css takes a lot less work than appending.
working through infinite optomization/testing
- ref issue #96
testing for issue #96
working through issue #96.
- Major code changes complete.
- Debugging agains't benchmarks.
- Moving toward v1.1
working through issue #96
working through #96
testing issue #96
working #96 call back functions
With this change, when infiniteSlider and autoSlide are both true, will it continue to scroll endlessly in the right-to-left direction?
It will yes. It does do this currently I believe. I am aiming to maintain all current functionality while still making this change.
Ah yes, you are correct.
working on issue #96
issue #96 work
issue #96 progress
cleaning up issue #96 code
final edits to #96
debugging benckmarks for issue #96
- final tweaks I swear
- fix for issue #96
Ok, so I have this working now. Didn't realize I would have to overhaul the entire code base, but this is what I was intending on doing for infinite sliding in the first place. I have gone to v1.1.0 on the master branch and is ready for final testing. Hopefully the bugs are minimal.
Let me know if you run into any issues and I will try to fix them as quickly as possible.