File tree Expand file tree Collapse file tree
src/lib/components/Settings/Reader Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 } from ' $lib/settings' ;
1616 import { isReader } from ' $lib/util' ;
1717 import { routeParams } from ' $lib/util/hash-router' ;
18+ import { MAX_PAGE_GAP } from ' $lib/reader/zoom-math' ;
1819
1920 // Derived visibility flags
2021 let isContinuous = $derived ($settings .continuousScroll );
101102 onchange ={onPageViewModeChange }
102103 />
103104 </div >
105+ {#if isDualOrAuto }
106+ <div >
107+ <Label class =" text-gray-900 dark:text-white" >
108+ Page gap: {$settings .pagedGap }px
109+ <span class =" ml-2 text-xs text-gray-500 dark:text-gray-400" >(Ctrl+Shift+Scroll)</span >
110+ </Label >
111+ <Range
112+ min ={0 }
113+ max ={MAX_PAGE_GAP }
114+ value ={$settings .pagedGap }
115+ onchange ={(e ) =>
116+ updateSetting (' pagedGap' , Number ((e .target as HTMLInputElement ).value ))}
117+ />
118+ </div >
119+ {/if }
104120 {/if }
105121
106122 <!-- 3. If continuous: Scroll mode dropdown + gap slider -->
126142 <div >
127143 <Label class =" text-gray-900 dark:text-white" >
128144 Divider size: {$settings .scrollGap }px
145+ <span class =" ml-2 text-xs text-gray-500 dark:text-gray-400" >(Ctrl+Shift+Scroll)</span >
129146 </Label >
130147 <Range
131148 min ={0 }
132- max ={100 }
149+ max ={MAX_PAGE_GAP }
133150 value ={$settings .scrollGap }
134151 onchange ={(e ) =>
135152 updateSetting (' scrollGap' , Number ((e .target as HTMLInputElement ).value ))}
You can’t perform that action at this time.
0 commit comments