Switch MouseEventHandler to use MouseRegions

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2022-05-26 20:00:01 -06:00
co-authored by Max Brunsfeld
parent 50edcb06dd
commit 893f15ddab
26 changed files with 150 additions and 195 deletions
+2 -2
View File
@@ -290,7 +290,7 @@ impl BufferSearchBar {
.with_style(style.container)
.boxed()
})
.on_click(move |_, cx| cx.dispatch_action(ToggleSearchOption(search_option)))
.on_click(move |_, _, cx| cx.dispatch_action(ToggleSearchOption(search_option)))
.with_cursor_style(CursorStyle::PointingHand)
.boxed()
}
@@ -314,7 +314,7 @@ impl BufferSearchBar {
.with_style(style.container)
.boxed()
})
.on_click(move |_, cx| match direction {
.on_click(move |_, _, cx| match direction {
Direction::Prev => cx.dispatch_action(SelectPrevMatch),
Direction::Next => cx.dispatch_action(SelectNextMatch),
})
+2 -2
View File
@@ -672,7 +672,7 @@ impl ProjectSearchBar {
.with_style(style.container)
.boxed()
})
.on_click(move |_, cx| match direction {
.on_click(move |_, _, cx| match direction {
Direction::Prev => cx.dispatch_action(SelectPrevMatch),
Direction::Next => cx.dispatch_action(SelectNextMatch),
})
@@ -699,7 +699,7 @@ impl ProjectSearchBar {
.with_style(style.container)
.boxed()
})
.on_click(move |_, cx| cx.dispatch_action(ToggleSearchOption(option)))
.on_click(move |_, _, cx| cx.dispatch_action(ToggleSearchOption(option)))
.with_cursor_style(CursorStyle::PointingHand)
.boxed()
}