Skip to content

Commit 0145dc3

Browse files
committed
fix(scrollDelegate): revert change that made all scroll* methods blur inputs
Closes #2745
1 parent 878c817 commit 0145dc3

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Diff for: js/angular/controller/scrollController.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -113,50 +113,43 @@ function($scope,
113113
};
114114

115115
self.scrollTop = function(shouldAnimate) {
116-
ionic.DomUtil.blurAll();
117116
self.resize().then(function() {
118117
scrollView.scrollTo(0, 0, !!shouldAnimate);
119118
});
120119
};
121120

122121
self.scrollBottom = function(shouldAnimate) {
123-
ionic.DomUtil.blurAll();
124122
self.resize().then(function() {
125123
var max = scrollView.getScrollMax();
126124
scrollView.scrollTo(max.left, max.top, !!shouldAnimate);
127125
});
128126
};
129127

130128
self.scrollTo = function(left, top, shouldAnimate) {
131-
ionic.DomUtil.blurAll();
132129
self.resize().then(function() {
133130
scrollView.scrollTo(left, top, !!shouldAnimate);
134131
});
135132
};
136133

137134
self.zoomTo = function(zoom, shouldAnimate, originLeft, originTop) {
138-
ionic.DomUtil.blurAll();
139135
self.resize().then(function() {
140136
scrollView.zoomTo(zoom, !!shouldAnimate, originLeft, originTop);
141137
});
142138
};
143139

144140
self.zoomBy = function(zoom, shouldAnimate, originLeft, originTop) {
145-
ionic.DomUtil.blurAll();
146141
self.resize().then(function() {
147142
scrollView.zoomBy(zoom, !!shouldAnimate, originLeft, originTop);
148143
});
149144
};
150145

151146
self.scrollBy = function(left, top, shouldAnimate) {
152-
ionic.DomUtil.blurAll();
153147
self.resize().then(function() {
154148
scrollView.scrollBy(left, top, !!shouldAnimate);
155149
});
156150
};
157151

158152
self.anchorScroll = function(shouldAnimate) {
159-
ionic.DomUtil.blurAll();
160153
self.resize().then(function() {
161154
var hash = $location.hash();
162155
var elm = hash && $document[0].getElementById(hash);
@@ -180,11 +173,7 @@ function($scope,
180173
/**
181174
* @private
182175
*/
183-
self._setRefresher = function(
184-
refresherScope,
185-
refresherElement,
186-
refresherMethods
187-
) {
176+
self._setRefresher = function(refresherScope, refresherElement, refresherMethods) {
188177
self.refresher = refresherElement;
189178
var refresherHeight = self.refresher.clientHeight || 60;
190179
scrollView.activatePullToRefresh(

0 commit comments

Comments
 (0)