mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-19 19:06:16 +01:00
Handle middle mouse button clicks (#13678)
* Handle middle mouse button clicks * Fix up
This commit is contained in:
parent
3972642ba0
commit
22ee6bb137
@ -131,6 +131,11 @@ 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()
|
||||
}
|
||||
>
|
||||
{!alertVideos ? (
|
||||
<img
|
||||
|
@ -19,6 +19,7 @@ import { capitalizeFirstLetter } from "@/utils/stringUtil";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { TbExclamationCircle } from "react-icons/tb";
|
||||
import { TooltipPortal } from "@radix-ui/react-tooltip";
|
||||
import { baseUrl } from "@/api/baseUrl";
|
||||
|
||||
type LivePlayerProps = {
|
||||
cameraRef?: (ref: HTMLDivElement | null) => void;
|
||||
@ -224,6 +225,9 @@ export default function LivePlayer({
|
||||
className,
|
||||
)}
|
||||
onClick={onClick}
|
||||
onAuxClick={() =>
|
||||
window.open(`${baseUrl}#${cameraConfig.name}`, "_blank")?.focus()
|
||||
}
|
||||
>
|
||||
{((showStillWithoutActivity && !liveReady) || liveReady) && (
|
||||
<>
|
||||
|
@ -20,6 +20,7 @@ import { capitalizeFirstLetter } from "@/utils/stringUtil";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { InProgressPreview, VideoPreview } from "../preview/ScrubbablePreview";
|
||||
import { Preview } from "@/types/preview";
|
||||
import { baseUrl } from "@/api/baseUrl";
|
||||
|
||||
type PreviewPlayerProps = {
|
||||
review: ReviewSegment;
|
||||
@ -175,6 +176,9 @@ 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()
|
||||
}
|
||||
{...swipeHandlers}
|
||||
>
|
||||
{playingBack && (
|
||||
|
Loading…
Reference in New Issue
Block a user