diff --git a/modules/web/src/components/ReadSettings.vue b/modules/web/src/components/ReadSettings.vue
index 2bfd8eeff..d726eb241 100644
--- a/modules/web/src/components/ReadSettings.vue
+++ b/modules/web/src/components/ReadSettings.vue
@@ -138,6 +138,21 @@
>
+
+ 翻页速度
+
+
+
+
+
+ {{ jumpDuration }}
+
+
+
+
无限加载
{
if (config.value.readWidth > 640) config.value.readWidth -= 160;
saveConfig(config.value);
};
+const jumpDuration = computed(() => {
+ return store.config.jumpDuration;
+});
+const moreJumpDuration = () => {
+ store.config.jumpDuration += 100;
+ saveConfig(config.value);
+};
+const lessJumpDuration = () => {
+ if (store.config.jumpDuration === 0) return;
+ store.config.jumpDuration -= 100;
+ saveConfig(config.value);
+};
const infiniteLoading = computed(() => {
return store.config.infiniteLoading;
});
diff --git a/modules/web/src/store/bookStore.js b/modules/web/src/store/bookStore.js
index 1e0145f0c..e41af486e 100644
--- a/modules/web/src/store/bookStore.js
+++ b/modules/web/src/store/bookStore.js
@@ -22,6 +22,7 @@ export const useBookStore = defineStore("book", {
readWidth: 800,
infiniteLoading: false,
customFontName: "",
+ jumpDuration: 1000,
spacing: {
paragraph: 1,
line: 0.8,
diff --git a/modules/web/src/views/BookChapter.vue b/modules/web/src/views/BookChapter.vue
index 9ebf4feec..bf4610068 100644
--- a/modules/web/src/views/BookChapter.vue
+++ b/modules/web/src/views/BookChapter.vue
@@ -425,7 +425,9 @@ const handleKeyPress = (event) => {
type: "warn",
});
} else {
- jump(0 - document.documentElement.clientHeight + 100);
+ jump(0 - document.documentElement.clientHeight + 100, {
+ duration: store.config.jumpDuration,
+ });
}
break;
case "ArrowDown":
@@ -441,7 +443,9 @@ const handleKeyPress = (event) => {
type: "warn",
});
} else {
- jump(document.documentElement.clientHeight - 100);
+ jump(document.documentElement.clientHeight - 100, {
+ duration: store.config.jumpDuration,
+ });
}
break;
}