mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(scrollView): make xy scrolling work on ionScroll and ionContent
Closes #1462
This commit is contained in:
5
js/angular/directive/scroll.js
vendored
5
js/angular/directive/scroll.js
vendored
@@ -10,11 +10,11 @@
|
||||
*
|
||||
* @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'. Default 'y'.
|
||||
* @param {string=} direction Which way to scroll. 'x' or 'y' or 'xy'. Default 'y'.
|
||||
* @param {boolean=} paging Whether to scroll with paging.
|
||||
* @param {expression=} on-refresh Called on pull-to-refresh, triggered by an {@link ionic.directive:ionRefresher}.
|
||||
* @param {expression=} on-scroll Called whenever the user scrolls.
|
||||
* @param {boolean=} scrollbar-x Whether to show the horizontal scrollbar. Default false.
|
||||
* @param {boolean=} scrollbar-x Whether to show the horizontal scrollbar. Default true.
|
||||
* @param {boolean=} scrollbar-y Whether to show the vertical scrollbar. Default true.
|
||||
* @param {boolean=} zooming Whether to support pinch-to-zoom
|
||||
* @param {integer=} min-zoom The smallest zoom amount allowed (default is 0.5)
|
||||
@@ -53,6 +53,7 @@ function($timeout, $controller, $ionicBind) {
|
||||
minZoom: '@',
|
||||
maxZoom: '@'
|
||||
});
|
||||
$scope.direction = $scope.direction || 'y';
|
||||
|
||||
if (angular.isDefined($attr.padding)) {
|
||||
$scope.$watch($attr.padding, function(newVal) {
|
||||
|
||||
Reference in New Issue
Block a user