mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user