fix(PlayPauseButton): conflict with spacebar in fullscreen video

Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
This commit is contained in:
Fernando Fernández 2024-06-22 02:11:01 +02:00
parent 909886227f
commit 2033910025
No known key found for this signature in database
GPG Key ID: 82FD36644F1F4D3B

View File

@ -3,7 +3,11 @@
icon
:size="size"
:loading="playbackManager.isBuffering"
@click="playbackManager.playPause">
@click="(e: MouseEvent) => {
if ('pointerType' in e && e.pointerType) {
playbackManager.playPause()
}
}">
<VIcon
:size="size"
:icon="playPauseIcon" />
@ -11,6 +15,9 @@
</template>
<script setup lang="ts">
/**
* - Reason behind pointer checks: https://github.com/jellyfin/jellyfin-vue/issues/2353
*/
import IMdiExclamation from 'virtual:icons/mdi/exclamation';
import IMdiPauseCircleOutline from 'virtual:icons/mdi/pause-circle-outline';
import IMdiPlayCircleOutline from 'virtual:icons/mdi/play-circle-outline';