Skip to content

Conversation

@eshelsil
Copy link

@eshelsil eshelsil commented Dec 4, 2024

Description

Problem

Currently, the autoScroll interval in the scroll buttons is hardcoded to 50ms, which makes it difficult to adjust the scrolling speed for specific use cases.

Solution

This change makes the autoScroll interval configurable by allowing a new optional prop, autoScrollInterval, to be passed. The interval defaults to 50ms to maintain backward compatibility.

Tests

  • did not add test

Storybook

  • Added a new Storybook example to demonstrate the use of WithCustomAutoScrollInterval with different values.

Backward Compatibility

This change is fully backward-compatible as the autoScrollInterval defaults to 50ms, matching the previous implementation.

Related Issues

Closes #2829

@eshelsil eshelsil changed the title feat(select): make autoScroll interval configurable [Select] feature: make autoScroll interval configurable Dec 8, 2024
@vicli
Copy link

vicli commented Jul 8, 2025

hey @eshelsil — we're running into the same need to control scroll speed. Any plans on getting this merged in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow for configuration of scroll speed on Select component

2 participants