Commit b4ef55f5 by Alexander Zobnin

scrollbar: fix potential memory leaks in event handlers

parent b6931675
...@@ -61,11 +61,11 @@ export function geminiScrollbar() { ...@@ -61,11 +61,11 @@ export function geminiScrollbar() {
); );
// force updating dashboard width // force updating dashboard width
appEvents.on('toggle-sidemenu', forceUpdate); appEvents.on('toggle-sidemenu', forceUpdate, scope);
appEvents.on('toggle-sidemenu-hidden', forceUpdate); appEvents.on('toggle-sidemenu-hidden', forceUpdate, scope);
appEvents.on('toggle-view-mode', forceUpdate); appEvents.on('toggle-view-mode', forceUpdate, scope);
appEvents.on('toggle-kiosk-mode', forceUpdate); appEvents.on('toggle-kiosk-mode', forceUpdate, scope);
appEvents.on('toggle-inactive-mode', forceUpdate); appEvents.on('toggle-inactive-mode', forceUpdate, scope);
function forceUpdate() { function forceUpdate() {
scrollbar.scroll(); scrollbar.scroll();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment