diff --git a/src/window/utils.rs b/src/window/utils.rs index 938eafe..e33030e 100644 --- a/src/window/utils.rs +++ b/src/window/utils.rs @@ -301,11 +301,11 @@ impl Widget for NumberEdit<'_, T> { let mut delta = None; if self.arrows { - let arrow_left = res.rect.max.x + 4.0; - let arrow_right = res.rect.max.x + 20.0; - let arrow_top = res.rect.min.y - 2.0; + let arrow_left = res.rect.max.x - 16.0; + let arrow_right = res.rect.max.x; + let arrow_top = res.rect.min.y; let arrow_middle = (res.rect.min.y + res.rect.max.y) / 2.0; - let arrow_bottom = res.rect.max.y + 2.0; + let arrow_bottom = res.rect.max.y; let top_arrow_rect = Rect { min: (arrow_left, arrow_top).into(),