HSlider doesn't work with mouse

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

hey
i’m trying to implement a volume option in my game and i would like to use the mouse pointer to adjust the slider value.

however, i can’t get the focus when i press the grabber. The focus mode is on ALL option, and the grabber stills not following the mouse.

enter image description here

For tests, i connected a signal when mouse enters, but still not working.

func _on_VolumeSlider_mouse_entered() -> void:
    print("test")

any suggestion what it could be?

:bust_in_silhouette: Reply From: codelyok13

On_Gui_Input

On Gui Input, Poll for mouse information
If mouse scroll up, scroll up
if mouse scroll down, scroll down