Compare commits

..

No commits in common. "84ab0895f8444278db96642eff50c19026e71f7c" and "2722d19ecd529b12d58857a09ab27ca1662abc1e" have entirely different histories.

2 changed files with 1 additions and 3 deletions

View File

@ -200,7 +200,6 @@ func (this *ScrollContainer) handleKeyDown (key input.Key, numpad bool) bool {
} else {
vector.Y -= this.PageSize().Y
}
this.scrollBy(vector)
return true
case input.KeyPageDown:
if modifiers.Shift {
@ -208,7 +207,6 @@ func (this *ScrollContainer) handleKeyDown (key input.Key, numpad bool) bool {
} else {
vector.Y += this.PageSize().Y
}
this.scrollBy(vector)
return true
}
return false

View File

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