From d3d2c14b03bdcfae58efe3f1b4f96a6123148bea Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Tue, 29 Dec 2015 11:40:37 -0600 Subject: [PATCH] fix(drag): fix #4022 and #3695 --- js/angular/directive/sideMenuContent.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/angular/directive/sideMenuContent.js b/js/angular/directive/sideMenuContent.js index 209ca2f44ec..31e9551d73d 100644 --- a/js/angular/directive/sideMenuContent.js +++ b/js/angular/directive/sideMenuContent.js @@ -200,9 +200,7 @@ function($timeout, $ionicGesture, $window) { // add gesture handlers var gestureOpts = { stop_browser_behavior: false }; - if (ionic.DomUtil.getParentOrSelfWithClass($element[0], 'overflow-scroll')) { - gestureOpts.prevent_default_directions = ['left', 'right']; - } + gestureOpts.prevent_default_directions = ['left', 'right']; var contentTapGesture = $ionicGesture.on('tap', onContentTap, $element, gestureOpts); var dragRightGesture = $ionicGesture.on('dragright', onDragX, $element, gestureOpts); var dragLeftGesture = $ionicGesture.on('dragleft', onDragX, $element, gestureOpts);