Skip to content

Commit

Permalink
fix(headerBar): More accurate scroll-to-top detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Jun 12, 2014
1 parent 0e647e7 commit 1a7c1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/directive/headerFooterBar.js
Expand Up @@ -108,7 +108,7 @@ function tapScrollToTopDirective() {
if (ionic.DomUtil.rectContains(
touch.pageX, touch.pageY,
bounds.left, bounds.top - 20,
bounds.left + bounds.width, bounds.top + bounds.height
bounds.left + bounds.width, bounds.top + 20
)) {
var scrollCtrl = $element.controller('$ionicScroll');
scrollCtrl && scrollCtrl.scrollTop(true);
Expand Down

0 comments on commit 1a7c1f1

Please sign in to comment.