fix panel picker drag

This commit is contained in:
Dongdong Zhou 2024-06-11 19:59:12 +01:00
parent e99621d971
commit 890438883e
1 changed files with 2 additions and 1 deletions

View File

@ -584,7 +584,8 @@ fn panel_picker(
}) })
.style(|s| s.padding(1.0)), .style(|s| s.padding(1.0)),
label(|| "".to_string()).style(move |s| { label(|| "".to_string()).style(move |s| {
s.absolute() s.selectable(false)
.absolute()
.size_pct(100.0, 100.0) .size_pct(100.0, 100.0)
.apply_if(!is_bottom && is_first, |s| s.margin_top(2.0)) .apply_if(!is_bottom && is_first, |s| s.margin_top(2.0))
.apply_if(!is_bottom && !is_first, |s| s.margin_top(-2.0)) .apply_if(!is_bottom && !is_first, |s| s.margin_top(-2.0))