shoelace-style/shoelace

Carousel keyboard scrolling is "lagging" on chrome

Open

#2,265 opened on Nov 9, 2024

View on GitHub
 (4 comments) (0 reactions) (0 assignees)TypeScript (922 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (13,867 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Describe the bug

When using Chrome, using the keyboard arrows to change images in a carousel is slow and lead to visual lags. Holding the arrow key generate severe "lag" Doing the same on Safari feels better (snappier).

I don't think it's due to performance, most likely the way some event re-fire.

To Reproduce

Steps to reproduce the behavior:

  1. Go to the carousel page
  2. Click on the image
  3. Press and hold the right arrow key

Repeatedly pressing the arrow key in quick succession also generate some "lag".

Screenshots

https://github.com/user-attachments/assets/6295ede5-2ae0-4d94-9a8e-443dcafdcde4

Browser / OS

  • OS: Mac (ARM)
  • Browser: Chrome
  • Browser version: 130.0.6723.70

Additional information

Provide any additional information about the bug here.

Contributor guide