prevent messing with slider.direction when going from last to first and var.animationLoop is true
Merge pull request #691 from RwwL/develop

prevent messing with slider.direction when going from last to first. Fixes #284.