mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
[V1] Fixed Downloader Pause/Clear & Began Revision #1 Bug Fixes
This commit is contained in:
@@ -347,6 +347,18 @@ function PerformanceTab({ settings, update }: { settings: Settings; update: (p:
|
||||
checked={settings.compactSidebar}
|
||||
onChange={(v) => update({ compactSidebar: v })} />
|
||||
</div>
|
||||
<div className={s.section}>
|
||||
<p className={s.sectionTitle}>Reader</p>
|
||||
<Stepper
|
||||
label="Input debounce"
|
||||
description="Delay (ms) before page-turn input is processed. Increase if the reader feels laggy or skips pages. Set to 0 to disable."
|
||||
value={settings.readerDebounceMs ?? 120}
|
||||
min={0}
|
||||
max={500}
|
||||
step={20}
|
||||
onChange={(v) => update({ readerDebounceMs: v })}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -717,6 +729,8 @@ export default function SettingsModal() {
|
||||
const backdropRef = useRef<HTMLDivElement>(null);
|
||||
const contentBodyRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
contentBodyRef.current?.scrollTo({ top: 0 });
|
||||
}, [tab]);
|
||||
|
||||
Reference in New Issue
Block a user