mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(sideMenu): check whether drag is enabled before dragging
This commit is contained in:
2
js/angular/controller/sideMenuController.js
vendored
2
js/angular/controller/sideMenuController.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user