Skip to content

Commit

Permalink
fix(drag): fix #4022 and #3695
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Dec 29, 2015
1 parent 38e4e3b commit d3d2c14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/angular/directive/sideMenuContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d3d2c14

Please sign in to comment.