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

Remove overflow-x: hidden from body #5890

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

mendrew
Copy link
Contributor

@mendrew mendrew commented Sep 29, 2023

Описание

Известно, что при overflow-x: hidden на body события скролла не всплывают до window. И библиотеки (реализующие виртуальные списки [react-virtualizer]), которые слушают события скролла window ломаются.

Рекоммендуем пользователям библиотеки самим выставлять overflow-x: hidden на body, если это действительно нужно по какой-то причине.
Возможно, что выставим это же на AppRoot, если в этом будет необходимость, как в embedded режиме.

It's known that when body has overflow-x: hidden -
scroll handler on window doesn't handle
scroll events.

We recommend users of the library to
apply this manually is they need.
@mendrew mendrew added this to the v5.9.0 milestone Sep 29, 2023
@mendrew mendrew self-assigned this Sep 29, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 29, 2023

size-limit report 📦

Path Size
JS 317.14 KB (0%)
JS (gzip) 96.74 KB (0%)
JS (brotli) 80.07 KB (0%)
JS import Div (tree shaking) 2.71 KB (0%)
CSS 278.51 KB (-0.02% 🔽)
CSS (gzip) 36.12 KB (-0.01% 🔽)
CSS (brotli) 28.65 KB (-0.09% 🔽)

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1b4176d:

Sandbox Source
VKUI TypeScript Configuration

@github-actions
Copy link
Contributor

e2e tests

Playwright Report

@github-actions
Copy link
Contributor

github-actions bot commented Sep 29, 2023

👀 Docs deployed

Commit 1b4176d

@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (eee9d31) 81.20% compared to head (1b4176d) 81.20%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5890   +/-   ##
=======================================
  Coverage   81.20%   81.20%           
=======================================
  Files         299      299           
  Lines        9200     9200           
  Branches     3128     3128           
=======================================
  Hits         7471     7471           
  Misses       1729     1729           
Flag Coverage Δ
unittests 81.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mendrew mendrew marked this pull request as ready for review September 29, 2023 15:45
@mendrew mendrew requested a review from a team as a code owner September 29, 2023 15:45
@SevereCloud SevereCloud added the v5 Автоматизация: PR продублируется в ветку v5 label Oct 2, 2023
@mendrew mendrew merged commit dbaa10d into master Oct 2, 2023
46 checks passed
@mendrew mendrew deleted the mendrew/fix/body-scroll-handler branch October 2, 2023 13:43
vkcom-publisher pushed a commit that referenced this pull request Oct 2, 2023
Известно, что при `overflow-x: hidden` на `body` события скролла не всплывают до `window`. И библиотеки (реализующие виртуальные списки), которые слушают события скролла `window` ломаются.

Рекоммендуем пользователям библиотеки самим выставлять `overflow-x: hidden` на `body`, если это действительно нужно по какой-то причине.
Возможно, что выставим это же на `AppRoot`, если в этом будет необходимость, как в `embedded` режиме.
@vkcom-publisher
Copy link
Contributor

v5.9.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug v5 Автоматизация: PR продублируется в ветку v5
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants