file-elements #13

Merged
sashakoshka merged 9 commits from file-elements into main 2023-03-23 14:21:36 -06:00
Showing only changes of commit dcc672e2bc - Show all commits

View File

@ -152,6 +152,9 @@ func (element *ScrollContainer) HandleScroll (
x, y int,
deltaX, deltaY float64,
) {
horizontal, vertical := element.child.ScrollAxes()
if !horizontal { deltaX = 0 }
if !vertical { deltaY = 0 }
element.scrollChildBy(int(deltaX), int(deltaY))
}