From 409ba0db2dea5b52365f3d26043a02d7576b1c8d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 22 May 2020 21:48:03 +0300 Subject: - RIP smooth scrolling and associated hacks - attempt to make Headlines.move() / Article.cdmMoveToId() behave a bit more intuitively --- js/tt-rss.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'js/tt-rss.js') 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(); -- cgit v1.2.3