Merge branch 'StableVersion' into localDevelop
This commit is contained in:
@@ -119,7 +119,7 @@ function createDriver(){
|
||||
showButtons:false,
|
||||
stagePadding:10,//切口到元素的距离
|
||||
stageRadius:5,//切口圆弧度
|
||||
allowKeyboardControl:true,//控制是否可以键盘控制下一步
|
||||
allowKeyboardControl:false,//控制是否可以键盘控制下一步
|
||||
disableActiveInteraction:false,//是否禁用显示元素的交互
|
||||
overlayOpacity:.4,
|
||||
overlay: true,
|
||||
|
||||
@@ -150,11 +150,16 @@ const isMoible = () => {//判断是否是移动端
|
||||
let is_mobile = navigator.userAgent.toLowerCase().match(/(ipad|ipod|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null;
|
||||
// alert(navigator.userAgent.toLowerCase())
|
||||
var isiPad = (navigator.maxTouchPoints && navigator.maxTouchPoints > 0);
|
||||
// if (is_mobile) {
|
||||
// return true//判断是否在正则内
|
||||
// } else if(window.matchMedia("(pointer:fine)").matches){
|
||||
// return false//判断是否支持鼠标
|
||||
// }else{
|
||||
// isiPad//判断触摸点
|
||||
// }
|
||||
if (is_mobile) {
|
||||
return true//判断是否在正则内
|
||||
} else if(window.matchMedia("(pointer:fine)").matches){
|
||||
return false//判断是否支持鼠标
|
||||
}else{
|
||||
} else{
|
||||
isiPad//判断触摸点
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user