Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable automatic handling of node drag? #299

Open
bgribble opened this issue Jul 12, 2024 · 1 comment
Open

Disable automatic handling of node drag? #299

bgribble opened this issue Jul 12, 2024 · 1 comment

Comments

@bgribble
Copy link

I would like to have an "editing mode" and a "operating mode", where in the "operating mode" the node network is not editable. This allows me to have custom handling of mouse motion, clicks, and dragging to do things like move sliders that are rendered within nodes or other custom behavior.

Is it currently possible to disable handling of dragging? From crawling through the code it looks like one way to do it would be to set the Config.DragButtonIndex to a nonexistent button number, but I'm not sure if I can dynamically change that from frame to frame.

@bgribble
Copy link
Author

FWIW, the above hack (temporarily changing the DragButtonIndex to a number that doesn't match a real mouse button) works. The SelectButtonIndexis also set to 0 by default and manages the rubberband box and click-to-select behavior. Use that info as you will!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant