Wikiki / bulma-carousel

Display a carousel
MIT License
136 stars 99 forks source link

Add an option to stop autoplay when a user interacts with the carousel. #56

Closed boarder2 closed 6 years ago

boarder2 commented 6 years ago

Autoplay is great, but once a user interacts with the carousel, they're indicating that they want to look longer at something so we probably shouldn't continue to scroll for them.

This PR adds an option for this behavior and the default maintains the current functionality.

Also, fixes a minor bug on index.js line 173 this._autoPlay(this.optionsdelay); probably should have been this._autoPlay(this.options.delay);