From d01184fbb78d65a0989087f1d5c1a3ec17eb97f9 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 10 Sep 2023 18:26:13 +0200 Subject: [PATCH] Document ScrollContainer signals being emitted for touch events only --- doc/classes/ScrollContainer.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/classes/ScrollContainer.xml b/doc/classes/ScrollContainer.xml index 15a2f2cabf7..2181194fd46 100644 --- a/doc/classes/ScrollContainer.xml +++ b/doc/classes/ScrollContainer.xml @@ -50,7 +50,7 @@ Deadzone for touch scrolling. Lower deadzone makes the scrolling more sensitive. - The current horizontal scroll value. + The current horizontal scroll value. [b]Note:[/b] If you are setting this value in the [method Node._ready] function or earlier, it needs to be wrapped with [method Object.set_deferred], since scroll bar's [member Range.max_value] is not initialized yet. [codeblock] func _ready(): @@ -78,12 +78,14 @@ - Emitted when scrolling stops. + Emitted when scrolling stops when dragging the scrollable area [i]with a touch event[/i]. This signal is [i]not[/i] emitted when scrolling by dragging the scrollbar, scrolling with the mouse wheel or scrolling with keyboard/gamepad events. + [b]Note:[/b] This signal is only emitted on Android or iOS, or on desktop/web platforms when [member ProjectSettings.input_devices/pointing/emulate_touch_from_mouse] is enabled. - Emitted when scrolling is started. + Emitted when scrolling starts when dragging the scrollable area w[i]ith a touch event[/i]. This signal is [i]not[/i] emitted when scrolling by dragging the scrollbar, scrolling with the mouse wheel or scrolling with keyboard/gamepad events. + [b]Note:[/b] This signal is only emitted on Android or iOS, or on desktop/web platforms when [member ProjectSettings.input_devices/pointing/emulate_touch_from_mouse] is enabled.