mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(headerBar): scroll to top
This commit is contained in:
5
js/angular/directive/headerFooterBar.js
vendored
5
js/angular/directive/headerFooterBar.js
vendored
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user