allow clicking on chevron without triggering playback

This commit is contained in:
Josh Hawkins 2025-10-23 22:58:09 -05:00
parent 404ddbfbbc
commit e88936bb7f

View File

@ -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"}