This commit is contained in:
libccy 2017-04-05 15:02:20 +08:00
parent c7042b4770
commit 28b69c7f30
1 changed files with 19 additions and 9 deletions

View File

@ -37386,7 +37386,9 @@
delete _status.removePop; delete _status.removePop;
return true; return true;
}; };
uiintro.addEventListener('mouseleave',clickintro); if(!lib.config.touchscreen){
uiintro.addEventListener('mouseleave',clickintro);
}
uiintro.addEventListener('click',clickintro); uiintro.addEventListener('click',clickintro);
game.pause2(); game.pause2();
@ -37627,20 +37629,28 @@
ui.click.touchpop(); ui.click.touchpop();
ui.click.longpresscallback.call(_status.longpressing); ui.click.longpresscallback.call(_status.longpressing);
} }
// else{ else if(!_status.forceright){
// switch(lib.config.pressure_click){ _status.forceright=true;
// case 'pause':ui.click.pause();break; setTimeout(function(){
// case 'auto':ui.click.auto();break; _status.forceright=false;
// case 'config':ui.click.config();break; },600);
// } switch(lib.config.pressure_click){
// } case 'pause':ui.click.pause();break;
case 'auto':ui.click.auto();break;
case 'config':ui.click.config();break;
}
}
} }
} }
}); });
}, },
pressurepause:function(force,event){ pressurepause:function(force,event){
if(!_status.force&&!_status.mousedragging&&force>=0.5){ if(!_status.force&&!_status.mousedragging&&force>=0.5&&!_status.forceright){
_status.force=true; _status.force=true;
_status.forceright=true;
setTimeout(function(){
_status.forceright=false;
},600);
switch(lib.config.pressure_click){ switch(lib.config.pressure_click){
case 'pause':ui.click.pause();break; case 'pause':ui.click.pause();break;
case 'auto':ui.click.auto();break; case 'auto':ui.click.auto();break;