Only allow input events on parts of a ScrollContainer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By thornySoap

I am testing if $ScrollContainer/OtherContainer._has_point(event.global_position). If so, I want the default scroll behaviour, if not, the event should be propagated further up.
The problem is that I can’t simply set mouse filter to pass and do accept_event(), because then there would be no scrolling.
My current workaround is to set mouse filter to stop and if the check fails, I do accept_event() to prevent scrolling and then I manually call the parent’s _gui_input.
Is there a nicer and more “universal” way, so I don’t need to call it manually? Like a method to accept_event() without preventing the container to scroll?