Skip to content

Commit

Permalink
feat(ionContent): add locking option
Browse files Browse the repository at this point in the history
Closes #2034
  • Loading branch information
ajoslin committed Aug 20, 2014
1 parent 029f8f3 commit af22907
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/angular/directive/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* @param {string=} delegate-handle The handle used to identify this scrollView
* with {@link ionic.service:$ionicScrollDelegate}.
* @param {string=} direction Which way to scroll. 'x' or 'y' or 'xy'. Default 'y'.
* @param {boolean=} locking Whether to lock scrolling in one direction at a time. Useful to set to false when zoomed in or scrolling in two directions. Default true.
* @param {boolean=} padding Whether to add padding to the content.
* of the content. Defaults to true on iOS, false on Android.
* @param {boolean=} scroll Whether to allow scrolling of content. Defaults to true.
Expand Down Expand Up @@ -112,6 +113,7 @@ function($timeout, $controller, $ionicBind) {
var scrollViewOptions = {
el: $element[0],
delegateHandle: attr.delegateHandle,
locking: (attr.locking || 'true') === 'true',
bouncing: $scope.$eval($scope.hasBouncing),
startX: $scope.$eval($scope.startX) || 0,
startY: $scope.$eval($scope.startY) || 0,
Expand Down

0 comments on commit af22907

Please sign in to comment.