Fix mouse wheel on checkbox. (#205)

This commit is contained in:
Arthur Sonzogni
2021-09-16 00:47:31 +02:00
committed by GitHub
parent 7d4452f45c
commit 37b44e7557
4 changed files with 21 additions and 13 deletions

View File

@@ -50,10 +50,14 @@ int main(int argc, const char* argv[]) {
// -- Checkbox ---------------------------------------------------------------
bool checkbox_1_selected = false;
bool checkbox_2_selected = false;
bool checkbox_3_selected = false;
bool checkbox_4_selected = false;
auto checkboxes = Container::Vertical({
Checkbox("checkbox1", &checkbox_1_selected),
Checkbox("checkbox2", &checkbox_2_selected),
Checkbox("checkbox3", &checkbox_3_selected),
Checkbox("checkbox4", &checkbox_4_selected),
});
checkboxes = Wrap("Checkbox", checkboxes);