forked from akai/readest
feat(config): add an option to toggle footbar by tapping on the footbar (#2891)
This commit is contained in:
@@ -74,6 +74,8 @@ const ProgressInfoView: React.FC<PageInfoProps> = ({
|
||||
const [progressInfoMode, setProgressInfoMode] = useState(viewSettings.progressInfoMode);
|
||||
|
||||
const cycleProgressInfoModes = () => {
|
||||
if (!viewSettings.tapToToggleFooter) return;
|
||||
|
||||
const hasRemainingInfo = viewSettings.showRemainingTime || viewSettings.showRemainingPages;
|
||||
const hasProgressInfo = viewSettings.showProgressInfo;
|
||||
const modeSequence: (typeof progressInfoMode)[] = ['all', 'remaining', 'progress', 'none'];
|
||||
|
||||
Reference in New Issue
Block a user