Add on_release message to Slider (#378)
* Add on_finish callback to Slider * Fix formatting * Rename Slider's on_finish to on_release, make the message simply an event without data * Satisfy Clone impl requirement on Message in integration test * Only call on_release after dragging a slider
This commit is contained in:
parent
40750d9b36
commit
4960a8827e
2 changed files with 24 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ pub struct Controls {
|
|||
sliders: [slider::State; 3],
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum Message {
|
||||
BackgroundColorChanged(Color),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue