From ce728417e572ffbb4306a64e525d068912b61acf Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Thu, 23 Jan 2025 16:39:36 -0700 Subject: [PATCH] web/timeline: disable right click context menu on videos (#587) Signed-off-by: Sumner Evans --- web/src/ui/timeline/TimelineEvent.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/ui/timeline/TimelineEvent.tsx b/web/src/ui/timeline/TimelineEvent.tsx index 55c83edf..23efe9c8 100644 --- a/web/src/ui/timeline/TimelineEvent.tsx +++ b/web/src/ui/timeline/TimelineEvent.tsx @@ -87,6 +87,7 @@ const TimelineEvent = ({ evt, prevEvt, disableMenu, smallReplies, isFocused }: T !roomCtx.store.preferences.message_context_menu || targetElem.tagName === "A" || targetElem.tagName === "IMG" + || targetElem.tagName === "VIDEO" || window.getSelection()?.type === "Range" ) { return