Skip to content

Wildcard/Tabs: debounce the auto scroll-back

Warren Gifford requested to merge og/tabs-scroll-debounce into main

Created by: oleggromov

A follow-up to the scroll-back PR after a conversation with @AlicjaSuska. This debounces the scroll-back behavior by 500ms so that it's less confusing for the users.

https://user-images.githubusercontent.com/2196347/171007422-a12966b3-cccc-4a52-a927-e2cc46602769.mov

Test plan

  1. Pull the branch
  2. Run yarn storybook:wildcard
  3. Make sure tabs aren't scrolled back immediately as the mouse leaves their area

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading