Scroll TextEditor only if cursor.is_over(bounds)
This commit is contained in:
parent
ff78e97ad7
commit
29fb4eab87
1 changed files with 3 additions and 1 deletions
|
|
@ -539,7 +539,9 @@ impl Update {
|
||||||
}
|
}
|
||||||
_ => None,
|
_ => None,
|
||||||
},
|
},
|
||||||
mouse::Event::WheelScrolled { delta } => {
|
mouse::Event::WheelScrolled { delta }
|
||||||
|
if cursor.is_over(bounds) =>
|
||||||
|
{
|
||||||
action(Action::Scroll {
|
action(Action::Scroll {
|
||||||
lines: match delta {
|
lines: match delta {
|
||||||
mouse::ScrollDelta::Lines { y, .. } => {
|
mouse::ScrollDelta::Lines { y, .. } => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue