summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-05-22 21:48:03 +0300
committerAndrew Dolgov <[email protected]>2020-05-22 21:48:03 +0300
commit409ba0db2dea5b52365f3d26043a02d7576b1c8d (patch)
tree29268633bb26ec06fc98f28c5f6b7044a8d5c4f8 /js/tt-rss.js
parentc8cc845d5b1c64ea259667c01a9591a04e0e4e98 (diff)
- RIP smooth scrolling and associated hacks
- attempt to make Headlines.move() / Article.cdmMoveToId() behave a bit more intuitively
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index 595766f4e..d8818420c 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -288,25 +288,25 @@ require(["dojo/_base/kernel",
if (App.isCombinedMode())
Headlines.scroll(Headlines.line_scroll_offset, event);
else
- Headlines.move('next', {event: event});
+ Headlines.move('next');
};
this.hotkey_actions["prev_article_or_scroll"] = function (event) {
if (App.isCombinedMode())
Headlines.scroll(-Headlines.line_scroll_offset, event);
else
- Headlines.move('prev', {event: event});
+ Headlines.move('prev');
};
- this.hotkey_actions["next_article_noscroll"] = function (event) {
- Headlines.move('next', {noscroll: true, event: event});
+ this.hotkey_actions["next_article_noscroll"] = function () {
+ Headlines.move('next');
};
- this.hotkey_actions["prev_article_noscroll"] = function (event) {
- Headlines.move('prev', {noscroll: true, event: event});
+ this.hotkey_actions["prev_article_noscroll"] = function () {
+ Headlines.move('prev');
};
- this.hotkey_actions["next_article_noexpand"] = function (event) {
- Headlines.move('next', {noscroll: true, noexpand: true, event: event});
+ this.hotkey_actions["next_article_noexpand"] = function () {
+ Headlines.move('next', {no_expand: true});
};
- this.hotkey_actions["prev_article_noexpand"] = function (event) {
- Headlines.move('prev', {noscroll: true, noexpand: true, event: event});
+ this.hotkey_actions["prev_article_noexpand"] = function () {
+ Headlines.move('prev', {no_expand: true});
};
this.hotkey_actions["search_dialog"] = function () {
Feeds.search();