summaryrefslogtreecommitdiffstats
path: root/src/resize.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/resize.js')
-rw-r--r--src/resize.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/resize.js b/src/resize.js
index 04fa95c..9fe82ba 100644
--- a/src/resize.js
+++ b/src/resize.js
@@ -76,6 +76,18 @@ function initResizable()
if (i>=0) window.location.hash=url.substr(i);
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;
+ }
+ e.preventDefault();
+ } catch(err) {
+ e.preventDefault();
+ }
+ });
}