amend 54f0f232
This commit is contained in:
@@ -274,7 +274,7 @@ impl ItemButton {
|
|||||||
|
|
||||||
let close = match bar_position {
|
let close = match bar_position {
|
||||||
BarPosition::Top => y + THRESHOLD < alloc.height() as f64,
|
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::Left => x + THRESHOLD < alloc.width() as f64,
|
||||||
BarPosition::Right => x > THRESHOLD,
|
BarPosition::Right => x > THRESHOLD,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user