Skip to content

Commit 58c97e0

Browse files
committed
fix(headerBar): tap to scroll to top only on the nearest scrollview
Closes #1329
1 parent 3fede13 commit 58c97e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/angular/directive/headerFooterBar.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ function tapScrollToTopDirective() {
9898
bounds.left, bounds.top - 20,
9999
bounds.left + bounds.width, bounds.top + bounds.height
100100
)) {
101-
$ionicScrollDelegate.scrollTop(true);
101+
var scrollCtrl = $element.controller('$ionicScroll');
102+
scrollCtrl && scrollCtrl.scrollTop(true);
102103
}
103104
}
104105
}

0 commit comments

Comments
 (0)