Skip to content

Commit

Permalink
fix(UI): Disable right click on range elements (#5497)
Browse files Browse the repository at this point in the history
Fixes #5450
  • Loading branch information
avelad authored 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
Original file line number Diff line number Diff line change
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.