Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(statusbar): scroll to top on statusbar native event. Fixes #4724
  • Loading branch information
mlynch committed Dec 6, 2015
1 parent 128bb78 commit 37918a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/angular/service/platform.js
Expand Up @@ -20,7 +20,7 @@ IonicModule
})
.provider('$ionicPlatform', function() {
return {
$get: ['$q', function($q) {
$get: ['$q', '$ionicScrollDelegate', function($q, $ionicScrollDelegate) {
var self = {

/**
Expand Down Expand Up @@ -171,6 +171,11 @@ IonicModule
return q.promise;
}
};

window.addEventListener('statusTap', function() {
$ionicScrollDelegate.scrollTop(true);
});

return self;
}]
};
Expand Down

0 comments on commit 37918a2

Please sign in to comment.