diff --git a/textview.go b/textview.go index 59b4818..aabab6e 100644 --- a/textview.go +++ b/textview.go @@ -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 }