mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-19 17:18:46 +02:00
Fix:Lock orientation setting clicking on toggle button not working #465
This commit is contained in:
parent
d59f3ae0b6
commit
f6ee0bf8df
1 changed files with 2 additions and 3 deletions
|
@ -9,8 +9,8 @@
|
||||||
<p class="pl-4">Alternative bookshelf view</p>
|
<p class="pl-4">Alternative bookshelf view</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center py-3" @click.stop="toggleLockOrientation">
|
<div class="flex items-center py-3" @click.stop="toggleLockOrientation">
|
||||||
<div class="w-10 flex justify-center">
|
<div class="w-10 flex justify-center pointer-events-none">
|
||||||
<ui-toggle-switch v-model="lockCurrentOrientation" @input="saveSettings" />
|
<ui-toggle-switch v-model="lockCurrentOrientation" />
|
||||||
</div>
|
</div>
|
||||||
<p class="pl-4">Lock orientation</p>
|
<p class="pl-4">Lock orientation</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -148,7 +148,6 @@ export default {
|
||||||
getCurrentOrientation() {
|
getCurrentOrientation() {
|
||||||
const orientation = window.screen ? window.screen.orientation || {} : {}
|
const orientation = window.screen ? window.screen.orientation || {} : {}
|
||||||
const type = orientation.type || ''
|
const type = orientation.type || ''
|
||||||
console.log('getCurrentOrientation=' + type)
|
|
||||||
|
|
||||||
if (type.includes('landscape')) return 'LANDSCAPE'
|
if (type.includes('landscape')) return 'LANDSCAPE'
|
||||||
return 'PORTRAIT' // default
|
return 'PORTRAIT' // default
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue