mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(sideMenuContent): make dragContent default to true
This commit is contained in:
12
js/ext/angular/src/directive/ionicSideMenu.js
vendored
12
js/ext/angular/src/directive/ionicSideMenu.js
vendored
@@ -60,9 +60,13 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.vie
|
||||
|
||||
$element.addClass('menu-content');
|
||||
|
||||
$scope.$watch(attr.dragContent, function(value) {
|
||||
$scope.dragContent = value;
|
||||
});
|
||||
if (angular.isDefined(attr.dragContent)) {
|
||||
$scope.$watch(attr.dragContent, function(value) {
|
||||
$scope.dragContent = value;
|
||||
});
|
||||
} else {
|
||||
$scope.dragContent = true;
|
||||
}
|
||||
|
||||
var defaultPrevented = false;
|
||||
var isDragging = false;
|
||||
@@ -81,7 +85,7 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.vie
|
||||
}
|
||||
isDragging = true;
|
||||
sideMenuCtrl._handleDrag(e);
|
||||
e.gesture.srcEvent.preventDefault();
|
||||
//e.gesture.srcEvent.preventDefault();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user