You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's probably better to use the scroll bar's gui_input event to determine if they are being dragged instead of relying on their focus_mode. The scroll behavior when scrollbars are focused is in fact weird but I can't think of a use case where a user would like to make the scroll bars focusable.
Godot version
4.2.1 stable
Smooth scroll container version
d1a7891
Description
ScrollBarDragging1.mp4
h/v_scrollbar_dragging
remainstrue
when drags scroll bar until mouse enters content node's area.any_scroll_bar_dragged()
does not work, I guess it is because scroll bar 's 'focus_mode' isNone
by default.ScrollBarDragging2.mp4
Then I tried to set scroll bars' 'focus_mode' to
All
, but something weird occurred.h/v_scrollbar_dragging
andany_scroll_bar_dragged()
remaintrue
when drags scroll bar until lose focus.Steps to reproduce
Check properties on rich text label. Add these few lines in
update_text()
might help you checkany_scroll_bar_dragged()
.The text was updated successfully, but these errors were encountered: