feat(chat): add keyboard diagnostics
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
type ChatKeyboardViewportBaseline,
|
||||
type ChatKeyboardViewportSnapshot,
|
||||
} from "./chat-keyboard-geometry";
|
||||
import { useChatKeyboardDiagnostics } from "./use-chat-keyboard-diagnostics";
|
||||
|
||||
const CHAT_INPUT_LIFT_VAR = "--chat-input-lift";
|
||||
const CHAT_KEYBOARD_FALLBACK_DELAY_MS = 350;
|
||||
@@ -39,6 +40,8 @@ export function useChatKeyboardAvoidance({
|
||||
const activeRef = useRef(active);
|
||||
const baselineRef = useRef<ChatKeyboardViewportBaseline | null>(null);
|
||||
|
||||
useChatKeyboardDiagnostics({ containerRef });
|
||||
|
||||
useEffect(() => {
|
||||
activeRef.current = active;
|
||||
}, [active]);
|
||||
|
||||
Reference in New Issue
Block a user