scroll page when item not visible using 'n' and 'p'

This commit is contained in:
Athou
2013-05-26 00:07:00 +02:00
parent eabdbcc804
commit cc1d9dc4d2
2 changed files with 3 additions and 1 deletions

View File

@@ -692,6 +692,7 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer
var focusNextEntry = function(event) {
var entry = _getNextEntry();
if (entry) {
$scope.navigationMode = 'click';
$scope.current = entry;
}
};
@@ -699,6 +700,7 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer
var focusPreviousEntry = function(event) {
var entry = _getPreviousEntry();
if (entry) {
$scope.navigationMode = 'click';
$scope.current = entry;
}
};