Texture button release signal not sync with actual user release action

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

Weird behavior with Texture Buttons.
I have texture buttons with Normal and Pressed textures and is set to toggle.
I then connected their button down and button up signals to print accordingly for testing.
It seems that the button textures itself know when you release (button up) away from the button area, texture remains as normal instead of pressed…but the signals does not acknowledge it, button up signal emits even if I release away from button.
Bug? or am I misunderstanding something? Godot 3.0.6

:bust_in_silhouette: Reply From: Zylann

It seems to behave that way also for Button, so maybe it’s intented. You could use pressed instead, that one definitely isn’t firing when you release the mouse outside of the button. Despite the name, pressed triggers on release by default, and can be configured with the action_mode property.