Scrollbar and ScrollContainer use ScrollTo correctly

This commit is contained in:
2024-05-13 19:45:18 -04:00
parent 224ca25000
commit 87e81c00d3
2 changed files with 9 additions and 9 deletions

View File

@@ -108,7 +108,7 @@ func (this *ScrollContainer) handleScroll (x, y float64) {
if this.layout.root == nil { return }
this.layout.root.ScrollTo (
this.layout.root.ContentBounds().Min.
Add(image.Pt(int(x), int(y))))
Sub(image.Pt(int(x), int(y))))
}
type scrollContainerLayout struct {