Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling signal on RichTextLabel/ScrollContainer's scrollbar doesn't work when scrolling with scroll wheel #46421

Closed
ghost opened this issue Feb 25, 2021 · 8 comments · Fixed by #90988

Comments

@ghost
Copy link

ghost commented Feb 25, 2021


Bugsquad note: This issue has been confirmed several times already. No need to confirm it further.


Godot version:

3.2.4-rc3 (This is also an issue on 3.2.3).

OS/device including version:

Windows 10

Issue description:

The scrolling signal on a RichTextLabel's scrollbar will not emit when it's scrolled with the scroll wheel. Clicking and dragging it still works.

Steps to reproduce:

  1. Make RichTextLabel
  2. Add enough text to trigger the scrollbar to appear
  3. Connect scrollbar's scrolling signal
  4. Scroll with scroll wheel

Minimal reproduction project:

test.zip

@Calinou
Copy link
Member

Calinou commented Feb 25, 2021

Is that signal emitted when using the mouse wheel on a ScrollContainer?

Also, it's possible that this is caused by the RichTextLabel itself intercepting the mouse input (mouse wheel usage counts as a button press).

@ghost
Copy link
Author

ghost commented Feb 25, 2021

No, it's not emitted when using the mouse wheel on a ScrollContainer as well.

@Calinou Calinou changed the title Scrolling signal on RichTextLabel's scrollbar doesn't work when scrolling with scroll wheel Scrolling signal on ScrollContainer's scrollbar doesn't work when scrolling with scroll wheel Feb 25, 2021
@Calinou Calinou changed the title Scrolling signal on ScrollContainer's scrollbar doesn't work when scrolling with scroll wheel Scrolling signal on RichTextLabel/ScrollContainer's scrollbar doesn't work when scrolling with scroll wheel Feb 25, 2021
@SeleDreams
Copy link

I can confirm this issue is present on 3.3.2 as well for me

@IsotoxalDev
Copy link

this issue still persist in 3.4.4

@autofool
Copy link

autofool commented Nov 28, 2022

Can confirm on 3.5.1 stable mono.
[edit]
"scroll_started" and "scroll_ended" signals of scroll container does not work at all, no matter which child is used (Control, Label, Rect, etc.). While "scrolling" signal of scrollbar only works when scroll handle is grabbed.

@mhilbrunner
Copy link
Member

Can confirm this is still current as of Godot 4.0.2, with the behaviour mentioned above:

  • Scrolling with keyboard buttons or mouse wheel does not trigger signals
  • Grabbing the scroller and moving it does trigger signals

@t-karcher
Copy link
Contributor

"scroll_started" and "scroll_ended" signals of scroll container does not work at all, no matter which child is used (Control, Label, Rect, etc.). While "scrolling" signal of scrollbar only works when scroll handle is grabbed.

This is a separate bug, already reported in #22936

@TheSofox
Copy link
Contributor

It occurred to me that fast fix would just be to have "scrolling" fired whenever "_value_changed" is called, but that might be too broad.
Could I have some more direction for when "scrolling" is meant to be fired? I assume if its scrolled with keyboard or mouse then it should be fired, but if it's moved programmatically it shouldn't? The documentation just says "Emitted when the scrollbar is being scrolled."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants