mirror of https://github.com/FreeTubeApp/FreeTube
Fix issue with pause on click with legacy player
This commit is contained in:
parent
949d84ee98
commit
30d808e075
|
@ -66,14 +66,8 @@ let showComments = function (event, continuation = '') {
|
|||
*/
|
||||
let playPauseVideo = function (event) {
|
||||
let el = event.currentTarget;
|
||||
if (el.paused) {
|
||||
el.play();
|
||||
if($('.videoPlayer').is(':hover')) {
|
||||
$('.videoPlayer')[0].style.cursor = 'none';
|
||||
}
|
||||
}
|
||||
else {
|
||||
el.pause();
|
||||
if (el.paused && $('.videoPlayer').is(':hover')) {
|
||||
$('.videoPlayer')[0].style.cursor = 'none';
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -66,5 +66,5 @@ function checkForNewUpdate() {
|
|||
}
|
||||
|
||||
const openReleasePage = function () {
|
||||
shell.openExternal('https://github.com/FreeTubeApp/FreeTube/releases');
|
||||
shell.openExternal('https://freetubeapp.io/#download');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue