fix(headerBar): More accurate scroll-to-top detection

This commit is contained in:
Max Lynch
2014-06-12 13:48:32 -05:00
parent 0e647e77af
commit 1a7c1f1dc6

View File

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