Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/litegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ const globalExport = {};
AUTOHIDE_TITLE: 3,
VERTICAL_LAYOUT: "vertical", // arrange nodes vertically

/** Context menu scroll amount is multiplied by this value. Negative values reverse scroll direction. */
CONTEXT_MENU_SCROLL_MULTIPLIER: 1,

proxy: null, //used to redirect calls
node_images_path: "",

Expand Down Expand Up @@ -13771,6 +13774,7 @@ LGraphNode.prototype.executeAction = function(action)
if (!options.scroll_speed) {
options.scroll_speed = 0.1;
}
this.options.scroll_speed *= LiteGraph.CONTEXT_MENU_SCROLL_MULTIPLIER;

root.addEventListener("wheel", on_mouse_wheel, true);
root.addEventListener("mousewheel", on_mouse_wheel, true);
Expand Down