Switch MouseEventHandler to use MouseRegions
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
50edcb06dd
commit
893f15ddab
26 changed files with 150 additions and 195 deletions
|
@ -119,7 +119,7 @@ impl View for Select {
|
|||
.with_style(style.header)
|
||||
.boxed()
|
||||
})
|
||||
.on_click(move |_, cx| cx.dispatch_action(ToggleSelect))
|
||||
.on_click(move |_, _, cx| cx.dispatch_action(ToggleSelect))
|
||||
.boxed(),
|
||||
);
|
||||
if self.is_open {
|
||||
|
@ -151,7 +151,9 @@ impl View for Select {
|
|||
)
|
||||
},
|
||||
)
|
||||
.on_click(move |_, cx| cx.dispatch_action(SelectItem(ix)))
|
||||
.on_click(move |_, _, cx| {
|
||||
cx.dispatch_action(SelectItem(ix))
|
||||
})
|
||||
.boxed()
|
||||
}))
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue