FIX: Bug when scrolling in iOS Safari with composer open (#12831)
Regression was introduced in c54609. This ensures the full height composer styling only applies when (window height - viewport height > 0). Previously it was being wrongly triggered when that calculation returned a negative number.
This commit is contained in:
parent
60059a7190
commit
886f4b589e
|
@ -164,7 +164,7 @@ export default Component.extend(KeyEnterEscape, {
|
|||
const viewportWindowDiff =
|
||||
this.windowInnerHeight - window.visualViewport.height;
|
||||
|
||||
viewportWindowDiff
|
||||
viewportWindowDiff > 0
|
||||
? doc.classList.add("keyboard-visible")
|
||||
: doc.classList.remove("keyboard-visible");
|
||||
|
||||
|
|
Loading…
Reference in New Issue