Skip to content

Commit

Permalink
draw/frame: fix scrolling downwards
Browse files Browse the repository at this point in the history
  • Loading branch information
rogpeppe committed Nov 15, 2021
1 parent ea879e1 commit e401a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion draw/frame/frselect.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (f *Frame) Select(mc *draw.Mousectl) {
p1 = f.P0
scrolled = true
} else if mp.Y > f.R.Max.Y {
f.Scroll(f, -(mp.Y-f.R.Max.Y)/f.Font.Height+1)
f.Scroll(f, (mp.Y-f.R.Max.Y)/f.Font.Height+1)
p0 = f.P0
p1 = f.P1
scrolled = true
Expand Down

0 comments on commit e401a9a

Please sign in to comment.