ismail9k / vue3-carousel

Vue 3 carousel component
https://ismail9k.github.io/vue3-carousel/
MIT License
654 stars 162 forks source link

Throttle config is not applied because handleDragging is defined before prop initialization. #327

Open Eclmist opened 9 months ago

Eclmist commented 9 months ago

Describe the bug The throttle prop is exposed but does not take effect. This is because handleDragging is defined before props have been initialized.

To Reproduce Bind any value to throttle, and notice that it does not take effect.

For example:

<carousel 
  ...
  :throttle=0>
  ...
</carousel>

Expected behavior Mouse/touch drag on carousel should no longer be throttled.

Screenshots N.A.

Desktop (please complete the following information): All versions

Smartphone (please complete the following information): All versions