mirror of https://github.com/layui/layui
fix(laydate): 优化时间选择器在Safari on iOS, Firefox for Android 中的滑动操作 (#1550)
parent
232a959855
commit
db1f288299
|
@ -1539,9 +1539,10 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
if(lay.touchEventsSupported()){
|
if(layui.device().mobile){
|
||||||
olElem.on('touchstart', function(){
|
olElem.css({
|
||||||
this.style['overflow-y'] = 'auto';
|
overflowY: 'auto',
|
||||||
|
touchAction: 'pan-y'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue