mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
customizable scrolling speed
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user