This commit is contained in:
libccy 2017-04-05 16:08:11 +08:00
parent c816671822
commit 8b935307f9
2 changed files with 17 additions and 2 deletions

View File

@ -56,6 +56,7 @@ window.config={
hover_handcard:true,
hover_all:true,
right_info:true,
longpress_info:true,
long_info:true,
background_music:'music_default',
background_audio:true,

View File

@ -288,6 +288,13 @@
auto:'托管',
}
},
longpress_info:{
name:'长按显示信息',
init:true,
unfrequent:true,
restart:true,
intro:'长按后弹出菜单',
},
right_info:{
name:'右键显示信息',
init:true,
@ -401,6 +408,7 @@
map.hoveration.hide();
map.right_info.hide();
map.right_click.hide();
map.longpress_info.show();
map.swipe.show();
if(lib.config.swipe){
map.swipe_up.show();
@ -420,6 +428,7 @@
map.hover_all.show();
map.right_info.show();
map.right_click.show();
map.longpress_info.hide();
if(!config.hover_all){
map.hover_handcard.hide();
map.hoveration.hide();
@ -35548,7 +35557,7 @@
time:get.utc()
}
}
if(window.ForceTouch){
if(window.ForceTouch&&!_status.paused2&&!_status.forcetouchinterval){
_status.forcetouchinterval=setInterval(ui.click.forcetouch,30);
}
},
@ -36367,11 +36376,16 @@
if(this._longpresstimeout){
clearTimeout(this._longpresstimeout);
}
this._longpresstimeout=setTimeout(ui.click.longpresscallback,500);
if(lib.config.longpress_info){
this._longpresstimeout=setTimeout(ui.click.longpresscallback,500);
}
this._longpressevent=e;
if(_status.longpressing&&_status.longpressing!=this){
ui.click.longpresscancel.call(_status.longpressing);
}
if(window.ForceTouch&&!_status.paused2&&!_status.forcetouchinterval){
_status.forcetouchinterval=setInterval(ui.click.forcetouch,30);
}
_status.longpressing=this;
},
longpresscallback:function(){