baianat / hooper

🎠 A customizable accessible carousel slider optimized for Vue
https://baianat.github.io/hooper/
MIT License
720 stars 131 forks source link

dragable when the is less or same number of slide than number of slide to show #208

Open badoubadou opened 3 years ago

badoubadou commented 3 years ago

Describe the bug You can drag the slides when you have 3 slides in the hooper, and 3 itemsToShow in the settings.

To Reproduce Steps to reproduce the behavior:

  1. make a 3 slider hooper
  2. set setting to 3 itemsToShow and infiniteScroll to false
  3. try to drag slide and it will drag.

Expected behavior It should do nothing. the slide should be deactivated, since there is no hidden slide to show.

Desktop (please complete the following information):