ScrollContainer signals

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

How do I get a signal when I click on my “V Scroll Bar”
I tried (dont work):

$ScrollContainer.connect("scroll_started", self, "scroll")

The ScrollContainer scroll signals do not work for me either - I will report the issue.

The solution below is not a complete one, because no gui signal is emitted when just the scroll bar is manipulated.

tim_e | 2020-03-04 15:34

:bust_in_silhouette: Reply From: volzhs
extends ScrollContainer

func _ready():
	get_v_scrollbar().connect("gui_input", self, "on_scrollbar_input")

func on_scrollbar_input(e):
	if e is InputEventMouseButton and e.pressed:
		print("vertial scroll bar pressed")