Merge pull request #1578 from caneleex/patch/disable-scrolling

Add option to disable scrolling to edit
This commit is contained in:
Ajay Ramachandran
2022-11-29 16:03:35 -05:00
committed by GitHub
4 changed files with 18 additions and 0 deletions

View File

@@ -320,6 +320,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
}
changeTimesWhenScrolling(index: number, e: React.WheelEvent, sponsorTime: SponsorTime): void {
if (!Config.config.allowScrollingToEdit) return;
let step = 0;
// shift + ctrl = 1
// ctrl = 0.1