customizable scrolling speed

This commit is contained in:
Athou
2013-10-03 10:40:58 +02:00
parent ba3b8df4c9
commit ffef87e249
8 changed files with 35 additions and 1 deletions

View File

@@ -785,10 +785,11 @@ module.controller('FeedListCtrl', [
return;
} else {
var scrollTop = elemTop - $('#toolbar').outerHeight();
var speed = SettingsService.settings.scrollSpeed;
watch_scrolling = false;
$('html, body').animate({
scrollTop : scrollTop
}, 400, 'swing', function() {
}, speed, 'swing', function() {
watch_scrolling = true;
});
}