Skip to content

Commit

Permalink
no bankers rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed May 1, 2024
1 parent b2b0ae0 commit 1f6c369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textual/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit 1f6c369

Please sign in to comment.