Skip to content

Commit

Permalink
Fix vertical scroll for TextEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 21, 2023
1 parent 7373dd8 commit d52627b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/src/text_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ impl Update {
action(Action::Scroll {
lines: match delta {
mouse::ScrollDelta::Lines { y, .. } => {
if y > 0.0 {
if y.abs() > 0.0 {
-(y * 4.0).min(1.0) as i32
} else {
0
Expand Down

0 comments on commit d52627b

Please sign in to comment.