Splidejs / splide

Splide is a lightweight, flexible and accessible slider/carousel written in TypeScript. No dependencies, no Lighthouse errors.
https://splidejs.com
MIT License
4.89k stars 424 forks source link

Keyboard #1257

Open danekt opened 10 months ago

danekt commented 10 months ago

Checks

Version

v4.1.4

Description

Moving slides using the arrows key does not work for the first and last slide.

Reproduction Link

https://www.sveltelab.dev/q6r2jrcn1vadtbv

Steps to Reproduce

  1. Open https://www.sveltelab.dev/q6r2jrcn1vadtbv
  2. Click "Next slide (>)"
  3. KeyDown RightArrow 3x
  4. KeyDown LeftArrow does not work on the last slide :(
  5. Click "Previous slide (<)"
  6. KeyDown LeftArrow 3x
  7. KeyDown RightArrow does not work on the first slide :(

Expected Behaviour

I should be able to scroll through the slides and change the scrolling direction using the keyboard arrows.