diff --git a/templates/html/resize.js b/templates/html/resize.js index 2066667c63e..6d78f5b972e 100644 --- a/templates/html/resize.js +++ b/templates/html/resize.js @@ -92,11 +92,10 @@ function initResizable() $(sidenav).resizable({ minWidth: 0 }); $(window).resize(function() { resizeHeight(); }); var device = navigator.userAgent.toLowerCase(); - var ios_or_android = device.match(/(iphone|ipod|ipad|android)/); - if (ios_or_android) { /* wider split bar for touch only devices */ + var touch_device = device.match(/(iphone|ipod|ipad|android)/); + if (touch_device) { /* wider split bar for touch only devices */ $(sidenav).css({ paddingRight:'20px' }); $('.ui-resizable-e').css({ width:'20px' }); - console.log('ui='+$('.ui-resizable-e').width()); $('#nav-sync').css({ right:'34px' }); barWidth=20; } @@ -108,20 +107,6 @@ function initResizable() var _preventDefault = function(evt) { evt.preventDefault(); }; $("#splitbar").bind("dragstart", _preventDefault).bind("selectstart", _preventDefault); $(".ui-resizable-handle").dblclick(collapseExpand); - $(document).bind('touchmove',function(e){ - if (ios_or_android) { - try { - var target = e.target; - while (target) { - if ($(target).css('-webkit-overflow-scrolling')=='touch') return; - target = target.parentNode; - } - e.preventDefault(); - } catch(err) { - e.preventDefault(); - } - } - }); $(window).load(resizeHeight); }