mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed some dragging issues, and updated the embedded version
This commit is contained in:
@@ -617,7 +617,10 @@ function change_offline(enabled, already_offline){
|
||||
});
|
||||
|
||||
$("#controls").on("mousedown", function(e) {
|
||||
dragging = true;
|
||||
var acceptable = ["bar", "controls", "duration"];
|
||||
if(acceptable.indexOf($(e.target).attr("id")) >= 0) {
|
||||
dragging = true;
|
||||
}
|
||||
});
|
||||
$("#controls").on("mouseup", function(e) {
|
||||
dragging = false;
|
||||
@@ -721,7 +724,8 @@ function seekToMove(e){
|
||||
var _seconds = Helper.pad(Math.ceil(_time[1]));
|
||||
$("#seekToDuration").text(_minutes + ":" + _seconds);
|
||||
|
||||
if(dragging) {
|
||||
var acceptable = ["bar", "controls", "duration"];
|
||||
if(acceptable.indexOf($(e.target).attr("id")) >= 0 && dragging) {
|
||||
$("#bar").width(((100 / Player.player.getDuration()) * total) + "%");
|
||||
}
|
||||
} catch(e){}
|
||||
|
||||
Reference in New Issue
Block a user