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;
});
}

View File

@@ -55,6 +55,11 @@
</div>
</div>
<div class="tab-pane" ng-class="{active: tab == 'css'}">
<div>
<label>${settings.scroll_speed}</label>
<input type="number" ng-model="settings.scrollSpeed" min="0" max="1000" />
<span class="help-inline">${settings.scroll_speed.help}</span>
</div>
<div>
<label>${settings.theme}</label>
<select ng-model="settings.theme" ng-options="theme for theme in themes"></select>