diff --git a/thrimbletrimmer/src/common/video.scss b/thrimbletrimmer/src/common/video.scss index 33f6883..fa549c6 100644 --- a/thrimbletrimmer/src/common/video.scss +++ b/thrimbletrimmer/src/common/video.scss @@ -9,6 +9,15 @@ media-player { align-items: normal; } +media-gesture { + display: block; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + // Used to make the controls appear below the video player media-player:not([data-fullscreen]) media-controls { position: relative; diff --git a/thrimbletrimmer/src/common/video.tsx b/thrimbletrimmer/src/common/video.tsx index 452bcbf..57f5997 100644 --- a/thrimbletrimmer/src/common/video.tsx +++ b/thrimbletrimmer/src/common/video.tsx @@ -246,16 +246,9 @@ export const VideoPlayer: Component = (props) => { preload="auto" storage="thrimbletrimmer" > - { - const player = props.mediaPlayer(); - if (player.paused) { - player.play(event); - } else { - player.pause(event); - } - }} - /> + + +