From efde6d36c74deb7e57c0efae1261af2c96c5b79e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Mar 2021 12:29:26 +0300 Subject: [PATCH] add HOOK_HEADLINES_SCROLL_HANDLER --- js/Headlines.js | 3 +++ js/PluginHost.js | 1 + 2 files changed, 4 insertions(+) diff --git a/js/Headlines.js b/js/Headlines.js index df6ddaef8..90ded47bd 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -382,6 +382,9 @@ const Headlines = { } } } + + PluginHost.run(PluginHost.HOOK_HEADLINES_SCROLL_HANDLER); + } catch (e) { console.warn("scrollHandler", e); } diff --git a/js/PluginHost.js b/js/PluginHost.js index e7b4156e6..deb7c0645 100644 --- a/js/PluginHost.js +++ b/js/PluginHost.js @@ -20,6 +20,7 @@ const PluginHost = { HOOK_HEADLINE_MUTATIONS: 15, HOOK_HEADLINE_MUTATIONS_SYNCED: 16, HOOK_HEADLINES_RENDERED: 17, + HOOK_HEADLINES_SCROLL_HANDLER: 18, hooks: [], register: function (name, callback) { if (typeof(this.hooks[name]) == 'undefined')