mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
web/timeline: disable right click context menu on videos (#587)
Signed-off-by: Sumner Evans <me@sumnerevans.com>
This commit is contained in:
parent
b7f939f480
commit
ce728417e5
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue