Skip to content

Commit

Permalink
fix(headerBar): scroll to top
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Jun 23, 2014
1 parent f2f5519 commit 6eefee3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/angular/directive/headerFooterBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ function tapScrollToTopDirective() {
if (ionic.DomUtil.rectContains(
touch.pageX, touch.pageY,
bounds.left, bounds.top - 20,
bounds.left + bounds.width, bounds.top + 20
bounds.left + bounds.width, bounds.top + bounds.height
)) {
var scrollCtrl = $element.controller('$ionicScroll');
scrollCtrl && scrollCtrl.scrollTop(true);
$ionicScrollDelegate.scrollTop(true);
}
}
}
Expand Down

0 comments on commit 6eefee3

Please sign in to comment.