diff --git a/js/angular/directive/headerFooterBar.js b/js/angular/directive/headerFooterBar.js index 1218e96c425..a7bcef47227 100644 --- a/js/angular/directive/headerFooterBar.js +++ b/js/angular/directive/headerFooterBar.js @@ -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); } } }