Deepak – 06-09 Sep 3
I am looking to slow the scroll speed when using arrow key on my list
2 Replies
@Deepak You could disable default behavior of arrow keys in
keydown
event listener and then use debounced manual scrolling with e.g. window.scrollTo
https://developer.mozilla.org/en-US/docs/Web/API/Document/keydown_event
https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault
https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo
https://css-tricks.com/debouncing-throttling-explained-examples/This thread hasn’t had any activity in 12 hours, so it’s now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1015503911316107405