fix(laydate): 优化时间选择器在Safari on iOS, Firefox for Android 中的滑动操作 (#1550)

This commit is contained in:
morning-star 2024-01-11 09:20:01 +08:00 committed by GitHub
parent 232a959855
commit db1f288299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1539,9 +1539,10 @@
});
});
if(lay.touchEventsSupported()){
olElem.on('touchstart', function(){
this.style['overflow-y'] = 'auto';
if(layui.device().mobile){
olElem.css({
overflowY: 'auto',
touchAction: 'pan-y'
})
}
}