web/timeline: disable right click context menu on videos (#587)

Signed-off-by: Sumner Evans <me@sumnerevans.com>
This commit is contained in:
Sumner Evans 2025-01-23 16:39:36 -07:00 committed by GitHub
parent b7f939f480
commit ce728417e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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