mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-13 12:59:54 +00:00
Fixed scaling issue on mobile when playing, and fixed embed crashes
This commit is contained in:
@@ -148,6 +148,8 @@ window.addEventListener("load", function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function resizePlaylistPlaying(){};
|
||||||
|
|
||||||
function startWaitTimerPlay() {
|
function startWaitTimerPlay() {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
if(videoSource == "youtube") {
|
if(videoSource == "youtube") {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ function resizeFunction() {
|
|||||||
}
|
}
|
||||||
var temp_fit;
|
var temp_fit;
|
||||||
|
|
||||||
if(!Helper.mobilecheck() && !embed && !client){
|
if(!embed && !client){
|
||||||
temp_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71);
|
temp_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71);
|
||||||
List.element_height = (Helper.computedStyle("#wrapper", "height") / temp_fit)-5.3;
|
List.element_height = (Helper.computedStyle("#wrapper", "height") / temp_fit)-5.3;
|
||||||
} else if(embed) {
|
} else if(embed) {
|
||||||
@@ -876,7 +876,7 @@ function change_offline(enabled, already_offline){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function resizePlaylistPlaying(playing) {
|
function resizePlaylistPlaying(playing) {
|
||||||
if(document.querySelector("#wrapper") == null) return;
|
if(document.querySelector("#wrapper") == null || embed || client) return;
|
||||||
if(window.innerWidth < 601) {
|
if(window.innerWidth < 601) {
|
||||||
var subtract = 0;
|
var subtract = 0;
|
||||||
if(playing) {
|
if(playing) {
|
||||||
@@ -896,15 +896,9 @@ function resizePlaylistPlaying(playing) {
|
|||||||
var canFit = List.can_fit;
|
var canFit = List.can_fit;
|
||||||
Helper.css("#wrapper", "height", window.innerHeight - 246 - subtract + "px");
|
Helper.css("#wrapper", "height", window.innerHeight - 246 - subtract + "px");
|
||||||
|
|
||||||
if(!Helper.mobilecheck() && !embed && !client){
|
if(!embed && !client){
|
||||||
temp_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71);
|
temp_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71);
|
||||||
List.element_height = (Helper.computedStyle("#wrapper", "height") / temp_fit)-5.3;
|
List.element_height = (Helper.computedStyle("#wrapper", "height") / temp_fit)-5.3;
|
||||||
} else if(embed) {
|
|
||||||
temp_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 91) + 1;
|
|
||||||
List.element_height = (Helper.computedStyle("#wrapper", "height") / temp_fit)-4;
|
|
||||||
} else if(!client){
|
|
||||||
temp_fit = Math.round((Helper.computedStyle(".tabs", "height") - Helper.computedStyle("header", "height") - 64 - 40) / 71)+1;
|
|
||||||
List.element_height = ((window.innerHeight - Helper.computedStyle(".tabs", "height") - Helper.computedStyle("header", "height") - 64 - 40) / temp_fit)-5;
|
|
||||||
} else {
|
} else {
|
||||||
temp_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71)+1;
|
temp_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71)+1;
|
||||||
List.element_height = (Helper.computedStyle("#wrapper", "height") / temp_fit)-5.3;
|
List.element_height = (Helper.computedStyle("#wrapper", "height") / temp_fit)-5.3;
|
||||||
|
|||||||
Reference in New Issue
Block a user