Skip to content

Commit

Permalink
🐛 onSlideEnd fired twice
Browse files Browse the repository at this point in the history
  • Loading branch information
princejwesley committed May 8, 2015
1 parent 4da0e22 commit 1d6f0c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/circular-slider.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/circular-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,6 @@ SOFTWARE.
jcs.on('mouseup', function(e) {
mouseDown = false;
e.stopPropagation();
onSlideEnd();
});
jcs.on('mousemove', mousemoveHanlder);

Expand All @@ -542,7 +541,7 @@ SOFTWARE.
mousemoveHanlder(e);
onSlideEnd();
}
}
} else onSlideEnd();
mouseDown = false;
});

Expand Down

0 comments on commit 1d6f0c8

Please sign in to comment.