mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +00:00
Correctly clamp scroll offset vertically
This commit is contained in:
parent
e2a4474200
commit
176a022b10
1 changed files with 1 additions and 1 deletions
|
@ -1472,7 +1472,7 @@ impl Interactivity {
|
||||||
{
|
{
|
||||||
let mut scroll_offset = scroll_offset.borrow_mut();
|
let mut scroll_offset = scroll_offset.borrow_mut();
|
||||||
scroll_offset.x = scroll_offset.x.clamp(-scroll_max.width, px(0.));
|
scroll_offset.x = scroll_offset.x.clamp(-scroll_max.width, px(0.));
|
||||||
scroll_offset.y = scroll_offset.x.clamp(-scroll_max.height, px(0.));
|
scroll_offset.y = scroll_offset.y.clamp(-scroll_max.height, px(0.));
|
||||||
}
|
}
|
||||||
|
|
||||||
let interactive_bounds = interactive_bounds.clone();
|
let interactive_bounds = interactive_bounds.clone();
|
||||||
|
|
Loading…
Reference in a new issue