Skip to content

Conversation

dylanmccall
Copy link
Contributor

Use the _gui_input virtual function to pan and zoom the block canvas, instead of _input. This way, events are filtered according to the block canvas's visibility. As a side-effect, the block canvas processes input events after any containing widgets. For example, middle clicking inside a parameter input component will no longer begin panning. However, this is a better situation than the block canvas handling input events regardless of its visibility.

Closes: #184

Use the _gui_input virtual function to pan and zoom the block canvas,
instead of _input. This way, events are filtered according to the block
canvas's visibility. As a side-effect, the block canvas processes input
events after any containing widgets. For example, middle clicking inside
a parameter input component will no longer begin panning. However, this
is a better situation than the block canvas handling input events
regardless of its visibility.

Closes: #184
Copy link
Member

@dbnicholson dbnicholson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really wanted to do this before but I was too scared of the implications. I trust you do know the implications, though!

@dbnicholson dbnicholson merged commit 9f26461 into main Oct 1, 2024
3 checks passed
@dbnicholson dbnicholson deleted the block-canvas-gui-input branch October 1, 2024 21:36
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

Successfully merging this pull request may close these issues.

Scrolling or panning in any bottom panel panel is incorrectly handled by the Block Code panel
2 participants