antonreshetov / vue-glide

A slider and carousel as vue component on top of the Glide.js
https://antonreshetov.github.io/vue-glide/
MIT License
269 stars 39 forks source link

API not working outside an @click action #49

Open MCPWebdesign opened 4 years ago

MCPWebdesign commented 4 years ago

Hy, this.$refs.slider.glide.pause(); seems working only on click action. I've tried to use it in method function, for exemple : if (this.active >= 4) { console.log('PAUSE') this.$refs.slider.glide.pause(); } It does nothing without errors, except the console log. Our glide is configured with autoplay. Is there another calling API functions ? Could you help ? Thanks