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

Fix issue with scrolling after closing dialog #2823

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Conversation

Malinicz
Copy link
Contributor

@Malinicz Malinicz commented Dec 5, 2024

TS didn't show this as error because scrollY is a global variable 🙈

Problem: wrong scrollY value was set in the cleanup function (current one instead of initial), which resulted in scrolling to the top after closing Dialog.

Before:

Screen.Recording.2024-12-05.at.12.32.48.mov

After:

Screen.Recording.2024-12-05.at.12.29.54.mov

@Malinicz Malinicz enabled auto-merge (squash) December 5, 2024 11:39
@Malinicz Malinicz merged commit ef32dc5 into master Dec 5, 2024
4 checks passed
@Malinicz Malinicz deleted the am/dialog-scroll-fix branch December 5, 2024 11:42
@Malinicz Malinicz mentioned this pull request Dec 5, 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.

3 participants