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:
Duncan Freeman 2020-06-08 02:07:45 -07:00 committed by GitHub
parent 40750d9b36
commit 4960a8827e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 3 deletions

View file

@ -9,7 +9,7 @@ pub struct Controls {
sliders: [slider::State; 3],
}
#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum Message {
BackgroundColorChanged(Color),
}