Fix right click

This commit is contained in:
Nicolas Mowen 2024-09-13 07:07:41 -06:00
parent 74a1ea37f2
commit 9610a9b01e
3 changed files with 17 additions and 11 deletions

View File

@ -135,11 +135,13 @@ export function AnimatedEventCard({
<div <div
className="size-full cursor-pointer overflow-hidden rounded md:rounded-lg" className="size-full cursor-pointer overflow-hidden rounded md:rounded-lg"
onClick={onOpenReview} onClick={onOpenReview}
onAuxClick={() => onAuxClick={(e) => {
window if (e.button === 1) {
.open(`${baseUrl}review?id=${event.id}`, "_blank") window
?.focus() .open(`${baseUrl}review?id=${event.id}`, "_blank")
} ?.focus();
}
}}
> >
{!alertVideos ? ( {!alertVideos ? (
<img <img

View File

@ -226,9 +226,11 @@ export default function LivePlayer({
className, className,
)} )}
onClick={onClick} onClick={onClick}
onAuxClick={() => onAuxClick={(e) => {
window.open(`${baseUrl}#${cameraConfig.name}`, "_blank")?.focus() if (e.button === 1) {
} window.open(`${baseUrl}#${cameraConfig.name}`, "_blank")?.focus();
}
}}
> >
{((showStillWithoutActivity && !liveReady) || liveReady) && ( {((showStillWithoutActivity && !liveReady) || liveReady) && (
<> <>

View File

@ -177,9 +177,11 @@ export default function PreviewThumbnailPlayer({
onMouseOver={isMobile ? undefined : () => setIsHovered(true)} onMouseOver={isMobile ? undefined : () => setIsHovered(true)}
onMouseLeave={isMobile ? undefined : () => setIsHovered(false)} onMouseLeave={isMobile ? undefined : () => setIsHovered(false)}
onClick={handleOnClick} onClick={handleOnClick}
onAuxClick={() => onAuxClick={(e) => {
window.open(`${baseUrl}review?id=${review.id}`, "_blank")?.focus() if (e.button === 1) {
} window.open(`${baseUrl}review?id=${review.id}`, "_blank")?.focus();
}
}}
{...swipeHandlers} {...swipeHandlers}
> >
{playingBack && ( {playingBack && (