diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-10-13 10:01:04 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-10-13 10:17:01 (GMT) |
commit | 5d224ef681b0b15736be1fae76c873a0b2f18f5d (patch) | |
tree | d77d66aa03347acb030a14cb3ea78f64c4115fd6 | |
parent | c123ae9fe74b9bd786800d590074b4010b25f01a (diff) | |
download | Doxygen-5d224ef681b0b15736be1fae76c873a0b2f18f5d.zip Doxygen-5d224ef681b0b15736be1fae76c873a0b2f18f5d.tar.gz Doxygen-5d224ef681b0b15736be1fae76c873a0b2f18f5d.tar.bz2 |
Bug 707389 - GENERATE_TREEVIEW=YES disables touch scrolling with Android 3.x
-rw-r--r-- | src/resize.js | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/resize.js b/src/resize.js index a80dece..304fcb6 100644 --- a/src/resize.js +++ b/src/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(); } }); } |