feat(views/board): set up scroll via mouse wheel

This commit is contained in:
Elian Doran
2025-07-19 19:31:13 +03:00
parent 3e7dc71995
commit 8f8b9af862
3 changed files with 23 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
import { setupHorizontalScrollViaWheel } from "../../widget_utils";
import ViewMode, { ViewModeArgs } from "../view_mode";
import { getBoardData } from "./data";
@@ -56,7 +57,9 @@ export default class BoardView extends ViewMode<StateInfo> {
super(args, "board");
this.$root = $(TPL);
setupHorizontalScrollViaWheel(this.$root);
this.$container = this.$root.find(".board-view-container");
args.$parent.append(this.$root);
}