Fix TextView scrolling

This commit is contained in:
Sasha Koshka 2024-07-27 00:19:53 -04:00
parent b9c77fd5f7
commit 84ab0895f8

View File

@ -22,6 +22,6 @@ func NewTextView (text string) *TextView {
}
func (this *TextView) handleScroll (x, y float64) bool {
this.ScrollTo(this.ContentBounds().Min.Add(image.Pt(int(x), int(y))))
this.ScrollTo(this.ContentBounds().Min.Sub(image.Pt(int(x), int(y))))
return true
}