Closed HaroldLever closed 2 months ago
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
https://github.com/SpyrexDE/SmoothScroll/assets/80692930/a5bd9ff1-fb52-48fc-a08b-52a27a8bc9ac
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.https://github.com/SpyrexDE/SmoothScroll/assets/80692930/f97fbfee-ef33-40b2-b06f-31ae0223d680
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()
.