mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
Trigger Slider::SliderReleased signal on JM_BUTTONRELEASED message.
This commit is contained in:
parent
47db060bc5
commit
91b0a89a99
@ -149,6 +149,8 @@ bool Slider::onProcessMessage(JMessage msg)
|
||||
setSelected(false);
|
||||
releaseMouse();
|
||||
setupSliderCursor();
|
||||
|
||||
onSliderReleased();
|
||||
}
|
||||
break;
|
||||
|
||||
@ -244,9 +246,9 @@ void Slider::onChange()
|
||||
Change(); // Emit Change signal
|
||||
}
|
||||
|
||||
void Slider::onButtonReleased()
|
||||
void Slider::onSliderReleased()
|
||||
{
|
||||
ButtonReleased();
|
||||
SliderReleased();
|
||||
}
|
||||
|
||||
void Slider::setupSliderCursor()
|
||||
|
@ -24,7 +24,7 @@ public:
|
||||
|
||||
// Signals
|
||||
Signal0<void> Change;
|
||||
Signal0<void> ButtonReleased;
|
||||
Signal0<void> SliderReleased;
|
||||
|
||||
protected:
|
||||
// Events
|
||||
@ -33,7 +33,7 @@ protected:
|
||||
|
||||
// New events
|
||||
virtual void onChange();
|
||||
virtual void onButtonReleased();
|
||||
virtual void onSliderReleased();
|
||||
|
||||
private:
|
||||
void setupSliderCursor();
|
||||
|
Loading…
x
Reference in New Issue
Block a user