mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 17:21:40 +03:00
Fix horizontal scroll going too far to the left
Previously one could scroll infinitely to the left. This clams it to 0. Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
parent
fc7458d13b
commit
c8c605d23a
@ -202,7 +202,7 @@ impl ScrollManager {
|
||||
ScrollAnchor {
|
||||
anchor: top_anchor,
|
||||
offset: point(
|
||||
scroll_position.x,
|
||||
scroll_position.x.max(0.),
|
||||
scroll_position.y - top_anchor.to_display_point(&map).row() as f32,
|
||||
),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user