diff --git a/komga-webui/src/views/BookReader.vue b/komga-webui/src/views/BookReader.vue index 126f2ff56..9755001b3 100644 --- a/komga-webui/src/views/BookReader.vue +++ b/komga-webui/src/views/BookReader.vue @@ -2,10 +2,10 @@
@@ -183,10 +183,15 @@ + + + + + { this.doublePages = (v === 'true') }) + this.loadFromCookie(cookieSwipe, (v) => { + this.swipe = (v === 'true') + }) this.loadFromCookie(cookieFit, (v) => { if (v) { this.imageFit = v @@ -490,6 +500,15 @@ export default Vue.extend({ this.$cookies.set(cookieDoublePages, doublePages, Infinity) }, }, + swipe: { + get: function (): boolean { + return this.settings.swipe + }, + set: function (swipe: boolean): void { + this.settings.swipe = swipe + this.$cookies.set(cookieSwipe, swipe, Infinity) + }, + }, }, methods: { keyPressed (e: KeyboardEvent) {