X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=v1.0.x%2Fresize.js;fp=v1.0.x%2Fresize.js;h=304fcb6badde4fd456b1a9996098ff1a49736e7c;hb=81669568e8efb556df803a2bb02afd93764f4868;hp=a80decef3f865269b74a816079af40b0b0ba1f7f;hpb=1d9bb866738b09085bc6f387e83690c16d26c762;p=m6w6%2Fext-propro diff --git a/v1.0.x/resize.js b/v1.0.x/resize.js index a80dece..304fcb6 100644 --- a/v1.0.x/resize.js +++ b/v1.0.x/resize.js @@ -77,15 +77,19 @@ function initResizable() var _preventDefault = function(evt) { evt.preventDefault(); }; $("#splitbar").bind("dragstart", _preventDefault).bind("selectstart", _preventDefault); $(document).bind('touchmove',function(e){ - try { - var target = e.target; - while (target) { - if ($(target).css('-webkit-overflow-scrolling')=='touch') return; - target = target.parentNode; + var device = navigator.userAgent.toLowerCase(); + var ios = device.match(/(iphone|ipod|ipad)/); + if (ios) { + try { + var target = e.target; + while (target) { + if ($(target).css('-webkit-overflow-scrolling')=='touch') return; + target = target.parentNode; + } + e.preventDefault(); + } catch(err) { + e.preventDefault(); } - e.preventDefault(); - } catch(err) { - e.preventDefault(); } }); }