From 0145dc372d31a330c5754b7abd50dedd0a64136b Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 6 Feb 2015 09:08:31 -0700 Subject: [PATCH] fix(scrollDelegate): revert change that made all scroll* methods blur inputs Closes #2745 --- js/angular/controller/scrollController.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/js/angular/controller/scrollController.js b/js/angular/controller/scrollController.js index 2dca9e0bc4..7d8d7d29e2 100644 --- a/js/angular/controller/scrollController.js +++ b/js/angular/controller/scrollController.js @@ -113,14 +113,12 @@ function($scope, }; self.scrollTop = function(shouldAnimate) { - ionic.DomUtil.blurAll(); self.resize().then(function() { scrollView.scrollTo(0, 0, !!shouldAnimate); }); }; self.scrollBottom = function(shouldAnimate) { - ionic.DomUtil.blurAll(); self.resize().then(function() { var max = scrollView.getScrollMax(); scrollView.scrollTo(max.left, max.top, !!shouldAnimate); @@ -128,35 +126,30 @@ function($scope, }; self.scrollTo = function(left, top, shouldAnimate) { - ionic.DomUtil.blurAll(); self.resize().then(function() { scrollView.scrollTo(left, top, !!shouldAnimate); }); }; self.zoomTo = function(zoom, shouldAnimate, originLeft, originTop) { - ionic.DomUtil.blurAll(); self.resize().then(function() { scrollView.zoomTo(zoom, !!shouldAnimate, originLeft, originTop); }); }; self.zoomBy = function(zoom, shouldAnimate, originLeft, originTop) { - ionic.DomUtil.blurAll(); self.resize().then(function() { scrollView.zoomBy(zoom, !!shouldAnimate, originLeft, originTop); }); }; self.scrollBy = function(left, top, shouldAnimate) { - ionic.DomUtil.blurAll(); self.resize().then(function() { scrollView.scrollBy(left, top, !!shouldAnimate); }); }; self.anchorScroll = function(shouldAnimate) { - ionic.DomUtil.blurAll(); self.resize().then(function() { var hash = $location.hash(); var elm = hash && $document[0].getElementById(hash); @@ -180,11 +173,7 @@ function($scope, /** * @private */ - self._setRefresher = function( - refresherScope, - refresherElement, - refresherMethods - ) { + self._setRefresher = function(refresherScope, refresherElement, refresherMethods) { self.refresher = refresherElement; var refresherHeight = self.refresher.clientHeight || 60; scrollView.activatePullToRefresh(