Fix scrolling too fast on selection for editor and terminal (#28309)
This commit is contained in:
parent
1264e7a200
commit
3b787e85a4
2 changed files with 2 additions and 2 deletions
|
@ -1590,7 +1590,7 @@ impl Terminal {
|
|||
return None;
|
||||
};
|
||||
|
||||
Some(scroll_lines)
|
||||
Some(scroll_lines.clamp(-3, 3))
|
||||
}
|
||||
|
||||
pub fn mouse_down(&mut self, e: &MouseDownEvent, _cx: &mut Context<Self>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue