Prevent lightbox transition until specific number of scroll events (#2544)

* Delay before nav to next image on scroll
* Add config for scroll attempts before transition
This commit is contained in:
WithoutPants
2022-05-06 12:22:26 +10:00
committed by GitHub
parent c1a096a1a6
commit 73ded0d97d
9 changed files with 90 additions and 23 deletions

View File

@@ -289,6 +289,15 @@ export const SettingsInterfacePanel: React.FC = () => {
</option>
))}
</SelectSetting>
<NumberSetting
headingID="config.ui.scroll_attempts_before_change.heading"
subHeadingID="config.ui.scroll_attempts_before_change.description"
value={iface.imageLightbox?.scrollAttemptsBeforeChange ?? 0}
onChange={(v) =>
saveLightboxSettings({ scrollAttemptsBeforeChange: v })
}
/>
</SettingSection>
<SettingSection headingID="config.ui.editing.heading">