diff --git a/src/modules/laydate.js b/src/modules/laydate.js index 41aaf390..2e7d30f0 100644 --- a/src/modules/laydate.js +++ b/src/modules/laydate.js @@ -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' }) } }