fix(headerBar): scroll to top

This commit is contained in:
Max Lynch
2014-06-23 15:01:58 -05:00
parent f2f55199b9
commit 6eefee3d7e

View File

@@ -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);
}
}
}