diff --git a/src/modules/laydate.js b/src/modules/laydate.js index d72e38d9..d6cc4067 100644 --- a/src/modules/laydate.js +++ b/src/modules/laydate.js @@ -1514,7 +1514,8 @@ if(haveSpan[0]) haveSpan.remove(); elemHeader[2].appendChild(span); - lay(ul).find('ol').each(function(i){ + var olElem = lay(ul).find('ol'); + olElem.each(function(i){ var ol = this; //选择时分秒 lay(ol).find('li').on('click', function(){ @@ -1537,6 +1538,12 @@ that.setBtnStatus(); }); }); + + if(lay.touchEventsSupported()){ + olElem.on('touchstart', function(){ + this.style['overflow-y'] = 'auto'; + }) + } } return that;