Closed maarten-kieft closed 5 years ago
Hello,
Same issue here. :smiley:
The workaround is to add this line of code: VueCarousel.methods.start = function () { };
Add it before you initiate a carousel.
@maarten-kieft Yes, thank's. I'm waiting a fix by @fengyuanchen 👍
If you clicked the next slide you will get an error like this:
e.start is not a function at c (main.js:formatted:8308) at a.slideEnd (main.js:formatted:8329) at t (main.js:formatted:865) at HTMLDivElement.Pr.t._withTask.o._withTask (main.js:formatted:2674)
When going trhough the source its this code actually:
slideEnd() { const moveX = this.endX - this.startX; const moveY = this.endY - this.startY; const thresholdX = this.$el.offsetWidth / 5; const thresholdY = this.$el.offsetHeight / 5; const top = moveY < -thresholdY; const right = moveX > thresholdX; const bottom = moveY > thresholdY; const left = moveX < -thresholdX; const done = () => { if (this.pauseOnEnter) { this.start(); } };
The start method is not defined anywhere. I'am also not sure what its supposed to do, because it seem to work fine.