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

useMove/ColorArea/ColorSlider: Implement autoscrolling on move #6299

Open
majornista opened this issue Apr 30, 2024 · 0 comments
Open

useMove/ColorArea/ColorSlider: Implement autoscrolling on move #6299

majornista opened this issue Apr 30, 2024 · 0 comments

Comments

@majornista
Copy link
Collaborator

Provide a general summary of the feature here

For components that use the useMove hook, there are cases where the element being moved should autoscroll into view at viewport edges. For example, in a ColorArea or ColorSlider rendered within a scrolling dialog, the ColorThumb updates to show the new color on move or when using the keyboard. If the ColorArea or ColorSlider is larger than the scrolling dialog viewport, the viewport should autoscroll so that the ColorThumb remains in view and the user can see the color value.

🤔 Expected Behavior?

If the ColorArea or ColorSlider, is larger than a scrolling viewport, the viewport should autoscroll so that the ColorThumb or object being moved remains in view and the user can see the color value.

😯 Current Behavior

The container element for a ColorArea or ColorSlider does not scroll automatically to keep the ColorThumb within the viewport on useMove or keyboard input.

💁 Possible Solution

No response

🔦 Context

Testing ColorPicker behavior when the ColorPicker dialog scrolls: https://reactspectrum.blob.core.windows.net/reactspectrum/5890d06349284910c74d2d028d65341b73c8b5fd/storybook/index.html?path=/story/colorpicker--default&providerSwitcher-express=false

💻 Examples

No response

🧢 Your Company/Team

Adobe/Accessibility

🕷 Tracking Issue

No response

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

No branches or pull requests

1 participant