Kit Bishop

Results 79 comments of Kit Bishop
trafficstars

> when Container call fit_child_in_rect, check the flag and emit singal? In this case, shouldn't we just make `fit_child_in_rect` virtual? I don't think it needs to be a signal.

This is because the ScrollContainer doesn't want the events from the ScrollBars, so it doesn't have them propagated. To get the gui events from the scrollbars you can use `get_v_scroll_bar()`...

related: - https://github.com/godotengine/godot-proposals/issues/7156 - https://github.com/godotengine/godot/pull/84114

Actually you can just use [get_viewport().update_mouse_cursor_state()](https://docs.godotengine.org/en/stable/classes/class_viewport.html#class-viewport-method-update-mouse-cursor-state) to update the mouse cursor.

- related https://github.com/godotengine/godot/pull/67531

The current behavior is intentional, so I think this needs a proposal. Do any other IDEs or text editors work like this?

- will be fixed by https://github.com/godotengine/godot/pull/90439 But could be fixed separately, since that PR is waiting for another that is still in progress.

Godot uses [Event Bubbling](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#event_bubbling) for input events. MOUSE_FILTER_PASS just means the default bubbling behavior should be used. Most other gui mouse input systems use Event Bubbling (Unity, Unreal, HTML, Windows,...

- looks like a duplicate of https://github.com/godotengine/godot/issues/96448

@Nirhar You don't need to be assigned on github, you're welcome to tackle the issue. See [this](https://docs.godotengine.org/en/latest/contributing/workflow/bug_triage_guidelines.html) for more details.