-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ScrollContext): Fix scroll position after opening ActionSheet fro…
…m ModalPage (#6614) Если проскролить панель, открыть `ModalPage`, а затем из него `ActionSheet`, то скролл панели сбросится и мы увидим верхний контент страницы (за оверлеем). Оказалось, что и `ModalPage` и `ActionSheet` используют один и тот же контекст при открытии для запрета скролла. Но фукция, запрещающая скролл не проверяет, были ли он уже запрещён или нет. Если он уже был запрещён, значит нужные отступы у body уже выставлены, и повторный запуск логики по запрету скролла неправильно перебивает отступы.
- Loading branch information
Showing
2 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters