-
Notifications
You must be signed in to change notification settings - Fork 185
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(ModalRoot): rm preventTouch() #7325
Conversation
В ущерб проблеме, что при сворачивании `ModalPage` и `ModalCard` может вызываться **pull-to-refresh** (см. #3416), удаляем полифил на `overscroll-behavior-y: none` – метод `preventTouch()`. Удалям по причине не работающих скроллов в интерфейсе – они критичная пробелма, т.к. блокирует действия пользователя. Добавил сноску в документации `Readme.md` про это.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
size-limit report 📦
|
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. |
e2e tests |
👀 Docs deployed
Commit 3019e02 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7325 +/- ##
==========================================
+ Coverage 83.59% 83.63% +0.04%
==========================================
Files 369 369
Lines 11146 11132 -14
Branches 3641 3638 -3
==========================================
- Hits 9317 9310 -7
+ Misses 1829 1822 -7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Описание
В ущерб проблеме, что при сворачивании
ModalPage
иModalCard
может вызываться pull-to-refresh (см. #3416), удаляем полифил наoverscroll-behavior-y: none
– методpreventTouch()
.Удалям по причине не работающих скроллов в интерфейсе – они критичная пробелма, т.к. блокирует действия пользователя.
В PR #6004 добавили установку
overscroll-behavior-y: none
наhtml
, поэтому блокирование pull-to-refresh будет в браузерах, где это CSS свойство поддерживается (см. overscroll-behavior-y | Browser compatibility).Добавил сноску в документации
ModalRoot/Readme.md
про это ограничение.Изменения
overscroll-behavior-y: none
устанавливался и при первом рендере еслиactiveModal !== null
;documentScrolling
, т.к. уже не нужен – до этого это условие было полезным, чтобы не плодить событияtouchmove
.