Prevent zooming when trying to scroll to edit times

This commit is contained in:
Ajay 2024-01-21 13:31:45 -05:00
parent e489d0f913
commit 74aebd32a7

View file

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