refactor: Move simplebar helper functions from ui to scroll_util.

This commit eliminates the `ui.js` module from the codebase by moving
all simplebar helper functions to the `scroll_util` module.
This commit is contained in:
Lalit
2023-04-25 21:31:02 +05:30
committed by Tim Abbott
parent b55ee161e2
commit b9223088f3
33 changed files with 140 additions and 127 deletions

View File

@@ -18,12 +18,12 @@ import {page_params} from "./page_params";
import * as people from "./people";
import * as popovers from "./popovers";
import * as presence from "./presence";
import * as scroll_util from "./scroll_util";
import * as settings_account from "./settings_account";
import * as settings_bots from "./settings_bots";
import * as settings_config from "./settings_config";
import * as settings_panel_menu from "./settings_panel_menu";
import * as timerender from "./timerender";
import * as ui from "./ui";
import * as user_pill from "./user_pill";
const section = {
@@ -182,7 +182,7 @@ function populate_users() {
function reset_scrollbar($sel) {
return function () {
ui.reset_scrollbar($sel);
scroll_util.reset_scrollbar($sel);
};
}