Skip to content

Commit

Permalink
fix(UI): Disable right click on range elements (shaka-project#5497)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Aug 18, 2023
1 parent ac6a92a commit 3333ca4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/range_element.js
Expand Up @@ -110,6 +110,11 @@ shaka.ui.RangeElement = class extends shaka.ui.Element {
this.onChangeEnd();
}
});

this.eventManager.listen(this.bar, 'contextmenu', (e) => {
e.preventDefault();
e.stopPropagation();
});
}

/** @override */
Expand Down

0 comments on commit 3333ca4

Please sign in to comment.