fix: playpause on non-left keys

This commit is contained in:
ThaUnknown 2023-04-14 00:43:51 +02:00
parent 4011a81a1d
commit e5e545467f
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "3.9.5",
"version": "3.9.6",
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
"main": "src/index.js",

View file

@ -926,7 +926,7 @@
<div class='w-full h-full position-absolute' on:dblclick={toggleFullscreen} on:pointerdown|self={() => { if (page === 'player') playPause(); page = 'player' }} />
<span class='material-icons ctrl' class:text-muted={!hasLast} class:disabled={!hasLast} data-name='playLast' on:pointerdown={playLast}> skip_previous </span>
<span class='material-icons ctrl' data-name='rewind' on:pointerdown={rewind}> fast_rewind </span>
<span class='material-icons ctrl' data-name='playPause' on:pointerdown={playPause}> {ended ? 'replay' : paused ? 'play_arrow' : 'pause'} </span>
<span class='material-icons ctrl' data-name='playPause' on:click={playPause} on:keydown={wrapEnter(playPause)}> {ended ? 'replay' : paused ? 'play_arrow' : 'pause'} </span>
<span class='material-icons ctrl' data-name='forward' on:pointerdown={forward}> fast_forward </span>
<span class='material-icons ctrl' class:text-muted={!hasNext} class:disabled={!hasNext} data-name='playNext' on:pointerdown={playNext}> skip_next </span>
<div class='position-absolute bufferingDisplay' />