mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
Use content height
This commit is contained in:
parent
38665eb5f8
commit
ecc649e23b
@ -634,10 +634,16 @@ function DetectionReview({
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "PageDown":
|
case "PageDown":
|
||||||
contentRef.current?.scrollBy({ top: 600, behavior: "smooth" });
|
contentRef.current?.scrollBy({
|
||||||
|
top: contentRef.current.clientHeight / 2,
|
||||||
|
behavior: "smooth",
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
case "PageUp":
|
case "PageUp":
|
||||||
contentRef.current?.scrollBy({ top: -600, behavior: "smooth" });
|
contentRef.current?.scrollBy({
|
||||||
|
top: -contentRef.current.clientHeight / 2,
|
||||||
|
behavior: "smooth",
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -241,10 +241,16 @@ export default function SearchView({
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "PageDown":
|
case "PageDown":
|
||||||
contentRef.current?.scrollBy({ top: 600, behavior: "smooth" });
|
contentRef.current?.scrollBy({
|
||||||
|
top: contentRef.current.clientHeight / 2,
|
||||||
|
behavior: "smooth",
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
case "PageUp":
|
case "PageUp":
|
||||||
contentRef.current?.scrollBy({ top: -600, behavior: "smooth" });
|
contentRef.current?.scrollBy({
|
||||||
|
top: -contentRef.current.clientHeight / 2,
|
||||||
|
behavior: "smooth",
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user