Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Select] feature: make autoScroll interval configurable #3269

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

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
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
1 participant