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
|
<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
|
||||||
|
|||||||
@ -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) && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@ -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 && (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user