Skip to content

Commit

Permalink
maskでtime=0を指定するとブラウザ環境で停止する挙動の抑制
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikemokuMK committed Feb 7, 2021
1 parent 57a2844 commit 996727b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tyrano/plugins/kag/kag.tag_camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,11 @@ tyrano.plugin.kag.tag.mask = {

var that = this;
that.kag.layer.hideEventLayer();


if(pm.time=="0"){
pm.time="1";
}

var j_div = $("<div class='layer layer_mask' data-effect='"+pm.effect+"' style='z-index:100000000;position:absolute;'>");
j_div.css("animation-duration",parseInt(pm.time)+"ms");

Expand Down Expand Up @@ -586,6 +590,10 @@ tyrano.plugin.kag.tag.mask_off = {
start : function(pm) {
var that = this;
var j_div = $(".layer_mask");

if(pm.time=="0"){
pm.time="1";
}

$("#root_layer_game").css("opacity",1);

Expand Down

0 comments on commit 996727b

Please sign in to comment.