Skip to content

Commit

Permalink
fix(headerBar): tap to scroll to top only on the nearest scrollview
Browse files Browse the repository at this point in the history
Closes #1329
  • Loading branch information
ajoslin committed May 12, 2014
1 parent 3fede13 commit 58c97e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/angular/directive/headerFooterBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ function tapScrollToTopDirective() {
bounds.left, bounds.top - 20,
bounds.left + bounds.width, bounds.top + bounds.height
)) {
$ionicScrollDelegate.scrollTop(true);
var scrollCtrl = $element.controller('$ionicScroll');
scrollCtrl && scrollCtrl.scrollTop(true);
}
}
}
Expand Down

0 comments on commit 58c97e0

Please sign in to comment.