Falco
(Falco)
9월 25, 2022, 8:00오후
23
Nukeador:
이 문제의 상태는 어떻습니까?
수정이 준비되었고, 이번 주 초에 병합할 예정입니다.
main ← android-keyboard-fixes-3
merged 08:35PM - 26 Sep 22 UTC
Firefox has a bug where *sometimes* the visualViewport.height won't be
updated w… hen the keyboard pops up until you scroll, making our composer
stay hidden behind the keyboard. This commit uses both window.innerHeight and window.visualViewport.height using the minimum of both to check for height changes.
For Chrome/Edge we feature detect the new VirtualKeyboard API and
opt-into it when the composer opens and use it to detect if a keyboard
is being draw. Opting into the API changes how the viewport is
calculated so we have to also change how the full height composer is
calculated. To minimize breakage we opt-out when the composer component
is destroyed.
This commit also moves the `--composer-ipad-padding` to only happen on
iPads.
Bug report at https://meta.discourse.org/t/-/228382
우리는 Android에서 Chrome만 지원합니다. 하지만 여기서는 Firefox의 Visual Viewport API 구현 버그에서 비롯된 문제입니다. 키보드가 화면에 표시될 때 값이 업데이트되지 않고, Firefox에서 Virtual Keyboard API 지원이 없는 것도 원인이 됩니다.
Firefox Android에 이러한 버그가 있고, 최신 API가 부족하며 공식적으로 지원되지 않는 브라우저임에도 불구하고, 위 PR에 상당한 시간을 투자했습니다. 이 PR은 해당 문제를 우회하는 방식으로 동작해야 합니다.
4개의 좋아요