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

md-tabs: scroll to active tab on init shouldn't be smooth behaviour #5497

Closed
kkachniarz220 opened this issue Feb 27, 2024 · 1 comment · Fixed by #5487 · May be fixed by joepdooper/ivy#7, joepdooper/ivy#8 or X-oss-byte/pigweed#61
Closed

Comments

@kkachniarz220
Copy link
Contributor

What is affected?

Component

Description

Scrolling to active tab on component init should be immediate, now it is smooth.

In addition there is weird behaviour with playground:

screen-capture.9.webm

Reproduction

lit.dev

Workaround

I have not found a reproduction

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Affected versions

1.3.0

Browser/OS/Node environment

Chrome 121.0.6167.187
Windows 11

@asyncLiz
Copy link
Collaborator

Looks like the boolean logic was flipping and we were smooth scrolling on init and instant scrolling on arrow key navigation, whoops!

I'm fixing this in #5499. It'll also fix setting scroll-behavior: instant on the tabs to turn off the default smooth scrolling.

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