maxmarinich / react-alice-carousel

React responsive component for building content galleries, content rotators and any React carousels
MIT License
843 stars 92 forks source link

Keyboard Navigation Question #190

Open GoodGuyMarco opened 3 years ago

GoodGuyMarco commented 3 years ago

Hey guys,

I got a slider with this responsive configuration and enabled keyboard navigation:

  const responsive = {
    0: {items: 1},
    576: {items: 2},
    992: {items: 3},
  };

When 3 slides are visible and I hit the arrow keys (left or right) it only moves one slide item. This confused me the first few times I saw that because the dots only update, when the next 3 items are visible.

Is this intended behaviour?

maxmarinich commented 3 years ago

Hi, @GoodGuyMarco! Yes this is an expected behavior. Perhaps here need to add a new strategy in the upcoming implementations to manage this case.