This commit is contained in:
Jake Stanger
2023-08-13 20:33:08 +01:00
parent 9e2ac0f43d
commit 8ec0237bc5

View File

@@ -274,7 +274,7 @@ impl ItemButton {
let close = match bar_position {
BarPosition::Top => y + THRESHOLD < alloc.height() as f64,
BarPosition::Bottom => y > 0.0,
BarPosition::Bottom => y > THRESHOLD,
BarPosition::Left => x + THRESHOLD < alloc.width() as f64,
BarPosition::Right => x > THRESHOLD,
};