mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-12 10:07:36 +03:00
allow clicking on chevron without triggering playback
This commit is contained in:
parent
404ddbfbbc
commit
e88936bb7f
@ -52,7 +52,6 @@ export default function DetailStream({
|
|||||||
const [upload, setUpload] = useState<Event | undefined>(undefined);
|
const [upload, setUpload] = useState<Event | undefined>(undefined);
|
||||||
|
|
||||||
const onSeekCheckPlaying = (timestamp: number) => {
|
const onSeekCheckPlaying = (timestamp: number) => {
|
||||||
console.log("DetailStream onSeekCheckPlaying, isPlaying:", isPlaying);
|
|
||||||
onSeek(timestamp, isPlaying);
|
onSeek(timestamp, isPlaying);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -129,7 +128,6 @@ export default function DetailStream({
|
|||||||
const isFullyInvisible =
|
const isFullyInvisible =
|
||||||
elementRect.bottom < containerRect.top ||
|
elementRect.bottom < containerRect.top ||
|
||||||
elementRect.top > containerRect.bottom;
|
elementRect.top > containerRect.bottom;
|
||||||
console.log(scrollRef.current, element, isFullyInvisible);
|
|
||||||
|
|
||||||
if (isFullyInvisible) {
|
if (isFullyInvisible) {
|
||||||
setProgrammaticScroll();
|
setProgrammaticScroll();
|
||||||
@ -341,7 +339,8 @@ function ReviewGroup({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
onClick={() => {
|
onClick={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
setOpen((v) => !v);
|
setOpen((v) => !v);
|
||||||
}}
|
}}
|
||||||
aria-label={open ? "Collapse" : "Expand"}
|
aria-label={open ? "Collapse" : "Expand"}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user