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(ModalRoot): rm preventTouch() #7325

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

inomdzhon
Copy link
Contributor

@inomdzhon inomdzhon commented Aug 6, 2024


Описание

В ущерб проблеме, что при сворачивании 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.

В ущерб проблеме, что при сворачивании `ModalPage` и `ModalCard` может вызываться **pull-to-refresh** (см. #3416), удаляем полифил на `overscroll-behavior-y: none` – метод `preventTouch()`.

Удалям по причине не работающих скроллов в интерфейсе – они критичная пробелма, т.к. блокирует действия пользователя.

Добавил сноску в документации `Readme.md` про это.
@inomdzhon inomdzhon requested a review from a team as a code owner August 6, 2024 15:12
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Aug 6, 2024
@inomdzhon inomdzhon removed the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Aug 6, 2024
Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Copy link
Contributor

github-actions bot commented Aug 6, 2024

size-limit report 📦

Path Size
JS 380.04 KB (-0.1% 🔽)
JS (gzip) 115.88 KB (-0.1% 🔽)
JS (brotli) 95.34 KB (-0.13% 🔽)
JS import Div (tree shaking) 1.39 KB (0%)
CSS 305.95 KB (0%)
CSS (gzip) 39.26 KB (0%)
CSS (brotli) 31.52 KB (0%)

Copy link

codesandbox-ci bot commented Aug 6, 2024

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.

Copy link
Contributor

github-actions bot commented Aug 6, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Aug 6, 2024

👀 Docs deployed

Commit 3019e02

Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.63%. Comparing base (cd5495c) to head (3019e02).

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     
Flag Coverage Δ
unittests 83.63% <ø> (+0.04%) ⬆️

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.

@inomdzhon inomdzhon merged commit a7b79b3 into master Aug 6, 2024
26 checks passed
@inomdzhon inomdzhon deleted the imirdzhamolov/issue335/fix/scrolls-in-modals branch August 6, 2024 18:05
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.

[Bug] В модалках не работают внутренние скроллы
3 participants