akiran / akiran/react-slick

Question: focusOnSelect, asNavFor and NOT sliding the navigation slider

Aperta
#2,088 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
JavaScript
Stelle
11.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Is there a way, when showing multiple items via `slidesToShow` (also `asNavFor` and `focusOnSelect` to control another slider), to **not** have it scroll to the next set of items until you've clicked the next arrow?

Currently when you click Item 3 for instance it's scrolls over until Item 3 is the first item shown, and Item 1 and 2 are off screen to the left. I'd like it to still select 3, but not move all the items over. The only thing that would scroll the items over would be the next/prev arrows or if I programmatically selected a slide that wasn't in the active slides shown.

My nav slider looks like this:

```jsx
setProductThumbsRef(ref)}
slidesToShow={6.5}
slidesToScroll={6}
swipe={false}
infinite={false}
focusOnSelect={true}
nextArrow={}
prevArrow={}
>
{images.map((image, index) => (

))}

```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.