Skip to content

Commit

Permalink
refactor(book reader): simplify flipDirection
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Mar 18, 2020
1 parent 30e766b commit 8b1b7c1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions komga-webui/src/views/BookReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8b1b7c1

Please sign in to comment.