fix(sideMenu): check whether drag is enabled before dragging

This commit is contained in:
perry
2015-01-23 11:35:16 -06:00
parent c85730e32b
commit acd0ff8f8c

View File

@@ -309,7 +309,7 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
// Handle a drag event
self._handleDrag = function(e) {
if (isAsideExposed) return;
if (isAsideExposed || !$scope.dragContent) return;
// If we don't have start coords, grab and store them
if (!startX) {