Skip to content

Commit

Permalink
web/timeline: disable right click context menu on videos (#587)
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans authored Jan 23, 2025
1 parent b7f939f commit ce72841
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/ui/timeline/TimelineEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce72841

Please sign in to comment.