diff --git a/src/textual/widget.py b/src/textual/widget.py index e1fa1346fc..33c143095c 100644 --- a/src/textual/widget.py +++ b/src/textual/widget.py @@ -2765,8 +2765,8 @@ def clamp_delta(delta: Offset) -> Offset: delta = clamp_delta( Offset( - round(region_center_x - window_center_x), - round(region_center_y - window_center_y), + int(region_center_x - window_center_x + 0.5), + int(region_center_y - window_center_y + 0.5), ) ) if origin_visible and (region.offset not in window.translate(delta)):