Container now implements MouseTarget again oops

This commit is contained in:
Sasha Koshka 2023-01-19 16:55:46 -05:00
parent 6f6591f0d0
commit 7b8cdd9e04

View File

@ -230,7 +230,7 @@ func (element *Container) HandleMouseMove (x, y int) {
}
}
func (element *Container) HandleScroll (x, y int, deltaX, deltaY float64) {
func (element *Container) HandleMouseScroll (x, y int, deltaX, deltaY float64) {
child, handlesMouse := element.ChildAt(image.Pt(x, y)).(tomo.MouseTarget)
if !handlesMouse { return }
childPosition := element.childPosition(child)