Skip to content

Commit 1a7c1f1

Browse files
committed
fix(headerBar): More accurate scroll-to-top detection
1 parent 0e647e7 commit 1a7c1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: js/angular/directive/headerFooterBar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function tapScrollToTopDirective() {
108108
if (ionic.DomUtil.rectContains(
109109
touch.pageX, touch.pageY,
110110
bounds.left, bounds.top - 20,
111-
bounds.left + bounds.width, bounds.top + bounds.height
111+
bounds.left + bounds.width, bounds.top + 20
112112
)) {
113113
var scrollCtrl = $element.controller('$ionicScroll');
114114
scrollCtrl && scrollCtrl.scrollTop(true);

0 commit comments

Comments
 (0)