Revert "feat(logging): report important keyboard events"
This reverts commit b59da8f7e4.
This commit is contained in:
@@ -67,14 +67,10 @@ export function useKeyboardHeight({
|
||||
const environment = getKeyboardAdaptEnvironment();
|
||||
if (!shouldEnableKeyboardAdaptation(environment)) {
|
||||
resetInputLiftVar();
|
||||
const payload = {
|
||||
log.debug("[keyboard] disabled", {
|
||||
reason: "not-android-facebook-fallback-device",
|
||||
environment,
|
||||
};
|
||||
log.debug("[keyboard] disabled", payload);
|
||||
if (environment.isAndroid && environment.isFacebookInAppBrowser) {
|
||||
log.important("info", "[keyboard] disabled", payload);
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -86,7 +82,7 @@ export function useKeyboardHeight({
|
||||
let lastInputLift = -1;
|
||||
const focusedAt = active ? performance.now() : 0;
|
||||
|
||||
log.important("info", "[keyboard] environment", environment);
|
||||
log.debug("[keyboard] environment", environment);
|
||||
|
||||
const clearTimers = () => {
|
||||
timeoutIds.forEach((id) => window.clearTimeout(id));
|
||||
@@ -103,7 +99,7 @@ export function useKeyboardHeight({
|
||||
|
||||
lastInputLift = nextLift;
|
||||
setInputLiftVar(nextLift);
|
||||
log.important("info", "[keyboard] apply", {
|
||||
log.debug("[keyboard] apply", {
|
||||
reason,
|
||||
inputLift: nextLift,
|
||||
fallback: nextLift === FALLBACK_INPUT_LIFT_PX,
|
||||
@@ -118,7 +114,7 @@ export function useKeyboardHeight({
|
||||
applyLift(0, reason);
|
||||
blurKeyboardTarget(targetRef?.current);
|
||||
onKeyboardDismissRef.current?.();
|
||||
log.important("info", "[keyboard] released", {
|
||||
log.debug("[keyboard] released", {
|
||||
reason,
|
||||
snapshot: formatSnapshot(readKeyboardSnapshot()),
|
||||
});
|
||||
@@ -175,7 +171,7 @@ export function useKeyboardHeight({
|
||||
const target = targetRef?.current;
|
||||
const container = containerRef?.current;
|
||||
if (event.target instanceof Node && container?.contains(event.target)) {
|
||||
log.important("info", "[keyboard] keep active for input container tap", {
|
||||
log.debug("[keyboard] keep active for input container tap", {
|
||||
snapshot: formatSnapshot(readKeyboardSnapshot()),
|
||||
});
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user