mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 15:15:22 +03:00
Fix right click
This commit is contained in:
parent
74a1ea37f2
commit
9610a9b01e
@ -135,11 +135,13 @@ export function AnimatedEventCard({
|
||||
<div
|
||||
className="size-full cursor-pointer overflow-hidden rounded md:rounded-lg"
|
||||
onClick={onOpenReview}
|
||||
onAuxClick={() =>
|
||||
window
|
||||
.open(`${baseUrl}review?id=${event.id}`, "_blank")
|
||||
?.focus()
|
||||
}
|
||||
onAuxClick={(e) => {
|
||||
if (e.button === 1) {
|
||||
window
|
||||
.open(`${baseUrl}review?id=${event.id}`, "_blank")
|
||||
?.focus();
|
||||
}
|
||||
}}
|
||||
>
|
||||
{!alertVideos ? (
|
||||
<img
|
||||
|
||||
@ -226,9 +226,11 @@ export default function LivePlayer({
|
||||
className,
|
||||
)}
|
||||
onClick={onClick}
|
||||
onAuxClick={() =>
|
||||
window.open(`${baseUrl}#${cameraConfig.name}`, "_blank")?.focus()
|
||||
}
|
||||
onAuxClick={(e) => {
|
||||
if (e.button === 1) {
|
||||
window.open(`${baseUrl}#${cameraConfig.name}`, "_blank")?.focus();
|
||||
}
|
||||
}}
|
||||
>
|
||||
{((showStillWithoutActivity && !liveReady) || liveReady) && (
|
||||
<>
|
||||
|
||||
@ -177,9 +177,11 @@ export default function PreviewThumbnailPlayer({
|
||||
onMouseOver={isMobile ? undefined : () => setIsHovered(true)}
|
||||
onMouseLeave={isMobile ? undefined : () => setIsHovered(false)}
|
||||
onClick={handleOnClick}
|
||||
onAuxClick={() =>
|
||||
window.open(`${baseUrl}review?id=${review.id}`, "_blank")?.focus()
|
||||
}
|
||||
onAuxClick={(e) => {
|
||||
if (e.button === 1) {
|
||||
window.open(`${baseUrl}review?id=${review.id}`, "_blank")?.focus();
|
||||
}
|
||||
}}
|
||||
{...swipeHandlers}
|
||||
>
|
||||
{playingBack && (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user