Re-enable scrolling for EditorElement
Co-Authored-By: Julia <julia@zed.dev> Co-Authored-By: Piotr <piotr@zed.dev>
This commit is contained in:
parent
9cb8512603
commit
b9e98c112f
4 changed files with 151 additions and 128 deletions
|
@ -120,6 +120,10 @@ where
|
|||
},
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clamp(&self, min: &Self, max: &Self) -> Self {
|
||||
self.max(min).min(max)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Clone + Default + Debug> Clone for Point<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue