Add f for fullscreen shortcut

This commit is contained in:
2025-02-03 16:29:26 +01:00
parent 99ad9ab2d5
commit 091df332d8
5 changed files with 41 additions and 17 deletions

View File

@@ -57,6 +57,13 @@ export const toggle_mute = () => {
}
return false
}
export const toggle_fullscreen = () => {
if (viewer && viewer.toggle_fullscreen) {
viewer.toggle_fullscreen()
return true
}
return false
}
export const seek = delta => {
if (viewer && viewer.seek) {
viewer.seek(delta)
@@ -103,7 +110,7 @@ export const seek = delta => {
<CustomBanner path={$nav.path}/>
</Zip>
{:else}
<File nav={nav} on:download>
<File nav={nav} on:download on:details>
<CustomBanner path={$nav.path}/>
</File>
{/if}