mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Prevent zooming when trying to scroll to edit times
This commit is contained in:
parent
e489d0f913
commit
74aebd32a7
1 changed files with 7 additions and 0 deletions
|
@ -69,6 +69,13 @@ class SubmissionNoticeComponent extends React.Component<SubmissionNoticeProps, S
|
|||
this.videoObserver.observe(this.contentContainer().v, {
|
||||
attributes: true
|
||||
});
|
||||
|
||||
// Prevent zooming while changing times
|
||||
document.getElementById("sponsorSkipNoticeMiddleRow" + this.state.idSuffix).addEventListener('wheel', function (event) {
|
||||
if (event.ctrlKey) {
|
||||
event.preventDefault();
|
||||
}
|
||||
}, {passive: false});
|
||||
}
|
||||
|
||||
componentWillUnmount(): void {
|
||||
|
|
Loading…
Reference in a new issue