|
|
@ -94,7 +94,8 @@ function setLift(nextLift: number) { |
|
|
const prevLift = currentLift; |
|
|
const prevLift = currentLift; |
|
|
currentLift = Math.max(0, Math.round(nextLift)); |
|
|
currentLift = Math.max(0, Math.round(nextLift)); |
|
|
document.documentElement.style.setProperty(LIFT_VARIABLE, `${currentLift}px`); |
|
|
document.documentElement.style.setProperty(LIFT_VARIABLE, `${currentLift}px`); |
|
|
const isOpen = currentLift > 0 && keyboardVisible && activeQuestionInput !== null; |
|
|
|
|
|
|
|
|
const isOpen = |
|
|
|
|
|
(currentLift > 0 || keyboardVisible) && activeQuestionInput !== null; |
|
|
document.body.classList.toggle("question-keyboard-open", isOpen); |
|
|
document.body.classList.toggle("question-keyboard-open", isOpen); |
|
|
console.log(`[Coord] setLift: ${prevLift}px -> ${currentLift}px | visible: ${keyboardVisible} | class: ${isOpen}`); |
|
|
console.log(`[Coord] setLift: ${prevLift}px -> ${currentLift}px | visible: ${keyboardVisible} | class: ${isOpen}`); |
|
|
} |
|
|
} |
|
|
|