mirror of
https://github.com/gotson/komga.git
synced 2025-12-28 19:39:20 +01:00
refactor(book reader): simplify flipDirection
This commit is contained in:
parent
30e766be16
commit
8b1b7c1a99
1 changed files with 1 additions and 7 deletions
|
|
@ -448,13 +448,7 @@ export default Vue.extend({
|
|||
}
|
||||
},
|
||||
flipDirection (): boolean {
|
||||
switch (this.readingDirection) {
|
||||
case ReadingDirection.LEFT_TO_RIGHT:
|
||||
return false
|
||||
case ReadingDirection.RIGHT_TO_LEFT:
|
||||
default:
|
||||
return true
|
||||
}
|
||||
return this.readingDirection === ReadingDirection.RIGHT_TO_LEFT
|
||||
},
|
||||
imageFit: {
|
||||
get: function (): ImageFit {
|
||||
|
|
|
|||
Loading…
Reference in a new issue