drewjbartlett / vue-flickity

A Vue Slider / Carousel Component for Flickity.js
http://drewjbartlett.com/demos/vue-flickity/
374 stars 55 forks source link

staticClick #26

Closed antoine3000 closed 6 years ago

antoine3000 commented 7 years ago

Hey, Is it possible to use staticClick with this Vue version of Flickity? If not, would it be possible to add it? Thanks for your work, Antoine

camilodelvasto commented 6 years ago

I used it like this, on the mounted hook:

this.$refs['myref'][0].flickity.on('staticClick', function(event, pointer, cellElement, cellIndex) {
  if (!cellElement) {
    return;
  }
  // some action here
})

so I guess it pretty much works and this should be closed :)

antoine3000 commented 6 years ago

Thanks for your reply @camilodelvasto.