Skip to content

Commit 37918a2

Browse files
committed
feat(statusbar): scroll to top on statusbar native event. Fixes #4724
1 parent 128bb78 commit 37918a2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: js/angular/service/platform.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ IonicModule
2020
})
2121
.provider('$ionicPlatform', function() {
2222
return {
23-
$get: ['$q', function($q) {
23+
$get: ['$q', '$ionicScrollDelegate', function($q, $ionicScrollDelegate) {
2424
var self = {
2525

2626
/**
@@ -171,6 +171,11 @@ IonicModule
171171
return q.promise;
172172
}
173173
};
174+
175+
window.addEventListener('statusTap', function() {
176+
$ionicScrollDelegate.scrollTop(true);
177+
});
178+
174179
return self;
175180
}]
176181
};

0 commit comments

Comments
 (0)