diff options
author | Ajay <[email protected]> | 2024-01-21 13:31:45 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2024-01-21 13:31:45 -0500 |
commit | 74aebd32a70b1077770e46c0cb48329df8f27657 (patch) | |
tree | 0c8164d1c15c5b69325e32a210ad98a55cde7578 /src | |
parent | e489d0f91369229c5f4753fe6db5cc4f85131f58 (diff) | |
download | SponsorBlock-74aebd32a70b1077770e46c0cb48329df8f27657.tar.gz SponsorBlock-74aebd32a70b1077770e46c0cb48329df8f27657.zip |
Prevent zooming when trying to scroll to edit times
Diffstat (limited to 'src')
-rw-r--r-- | src/components/SubmissionNoticeComponent.tsx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/SubmissionNoticeComponent.tsx b/src/components/SubmissionNoticeComponent.tsx index a49e3dda..cd51be01 100644 --- a/src/components/SubmissionNoticeComponent.tsx +++ b/src/components/SubmissionNoticeComponent.tsx @@ -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 { |