fix(tool): hide repair

This commit is contained in:
zhangheng
2026-04-22 11:11:00 +08:00
parent 7478788efd
commit bf65d7a123
2 changed files with 15 additions and 5 deletions

View File

@@ -2505,9 +2505,9 @@ const LabelPage = ({
reportUserActivity()
}
}
const handleWheel = () => {
reportUserActivity()
}
// const handleWheel = () => {
// reportUserActivity()
// }
const handleKeyDown = () => {
reportUserActivity(true)
}
@@ -2519,14 +2519,14 @@ const LabelPage = ({
window.addEventListener("pointerdown", handlePointerDown, true)
window.addEventListener("pointermove", handlePointerMove, true)
window.addEventListener("wheel", handleWheel, true)
// window.addEventListener("wheel", handleWheel, true)
window.addEventListener("keydown", handleKeyDown, true)
document.addEventListener("visibilitychange", handleVisibilityChange)
return () => {
window.removeEventListener("pointerdown", handlePointerDown, true)
window.removeEventListener("pointermove", handlePointerMove, true)
window.removeEventListener("wheel", handleWheel, true)
// window.removeEventListener("wheel", handleWheel, true)
window.removeEventListener("keydown", handleKeyDown, true)
document.removeEventListener("visibilitychange", handleVisibilityChange)
clearInactivityTimer()