Skip to content

Commit

Permalink
Fix infinite option and make new release fix 6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ragnarlotus committed Jan 10, 2020
1 parent 30efb8a commit cef3830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-flux",
"version": "6.0.0",
"version": "6.0.1",
"description": "Vue image slider",
"author": "ragnar lotus",
"repository": {
Expand Down
7 changes: 1 addition & 6 deletions src/controllers/Transitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,7 @@ export default class TransitionsController {
vf.$nextTick(() => {
vf.Images.last = vf.Images.current;

let {
current: currentImage,
previous: previousImage,
} = vf.Images;

if (!vf.config.infinite && currentImage.index >= previousImage.index) {
if (!vf.config.infinite && vf.Images.next.index === 0) {
vf.stop();
return;
}
Expand Down

0 comments on commit cef3830

Please sign in to comment.