Fixed issues with mobileplayer

This commit is contained in:
Kasper Rynning-Tønnesen
2017-04-29 13:16:42 +02:00
parent 7998ffb906
commit aff12c0f7e
4 changed files with 30 additions and 28 deletions

View File

@@ -725,7 +725,7 @@ hide mdi-action-visibility mdi-action-visibility-off
transition: padding 1s ease; transition: padding 1s ease;
} }
.mdi-navigation-closeà{ .mdi-navigation-closeÃâšÃ {
text-align:right !important; text-align:right !important;
} }
@@ -1462,7 +1462,7 @@ ul #chat-log{
#player{ #player{
height:95%; height:95%;
height: calc(100% - 32px); height: calc(100%);
position: relative; position: relative;
transform: translate(0%, 0%); transform: translate(0%, 0%);
z-index: 99; z-index: 99;
@@ -2235,8 +2235,8 @@ nav ul li:hover, nav ul li.active {
display: block !important; display: block !important;
width: 106vw !important; width: 106vw !important;
height: 200px !important; height: 200px !important;
z-index: 2; z-index: 9999;
bottom: 22px; bottom: 55px;
} }
.chan { .chan {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -712,7 +712,7 @@ window.enable_debug = enable_debug;
window.disable_debug = disable_debug; window.disable_debug = disable_debug;
function seekToMove(e){ function seekToMove(e){
if(!Helper.mobilecheck()) {
var pos_x = e.clientX - Math.ceil($("#seekToDuration").width() / 2) - 8; var pos_x = e.clientX - Math.ceil($("#seekToDuration").width() / 2) - 8;
if(pos_x < 0) pos_x = 0; if(pos_x < 0) pos_x = 0;
else if(pos_x + $("#seekToDuration").width() > $("#controls").width()) { else if(pos_x + $("#seekToDuration").width() > $("#controls").width()) {
@@ -733,11 +733,13 @@ function seekToMove(e){
$("#bar").width(((100 / Player.player.getDuration()) * total) + "%"); $("#bar").width(((100 / Player.player.getDuration()) * total) + "%");
} }
} catch(e){} } catch(e){}
}
} }
function seekToClick(e){ function seekToClick(e){
var acceptable = ["bar", "controls", "duration"]; var acceptable = ["bar", "controls", "duration"];
if(acceptable.indexOf($(e.target).attr("id")) >= 0) {
if(acceptable.indexOf($(e.target).attr("id")) >= 0 && !Helper.mobilecheck()) {
var total = full_playlist[full_playlist.length - 1].duration / $("#controls").width(); var total = full_playlist[full_playlist.length - 1].duration / $("#controls").width();
total = total * e.clientX; total = total * e.clientX;