mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 09:02:15 +03:00
Handle middle mouse button clicks (#13678)
* Handle middle mouse button clicks * Fix up
This commit is contained in:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user