fix(table): Use on_item_mb_double for double-click handler instead of on_item_mb_left

This commit is contained in:
Jonathan Wingrove 2026-03-14 22:07:58 +00:00 committed by Michael Murphy
parent 01e5593741
commit c52ef97650
2 changed files with 2 additions and 2 deletions

View file

@ -145,7 +145,7 @@ where
})
// Double click
.apply(|mouse_area| {
if let Some(ref on_item_mb) = val.on_item_mb_left {
if let Some(ref on_item_mb) = val.on_item_mb_double {
mouse_area.on_double_click((on_item_mb)(entity))
} else {
mouse_area

View file

@ -206,7 +206,7 @@ where
})
// Double click
.apply(|mouse_area| {
if let Some(ref on_item_mb) = val.on_item_mb_left {
if let Some(ref on_item_mb) = val.on_item_mb_double {
mouse_area.on_double_click((on_item_mb)(entity))
} else {
mouse_area