ScrollChanged is called in the OnInput event handler for updating, when the scrollbar value has changed, for given dimension. This is part of the Layouter interface.
(d math32.Dims, sb *Slider)
| 100 | // when the scrollbar value has changed, for given dimension. |
| 101 | // This is part of the Layouter interface. |
| 102 | func (fr *Frame) ScrollChanged(d math32.Dims, sb *Slider) { |
| 103 | fr.Geom.Scroll.SetDim(d, -sb.Value) |
| 104 | fr.This.(Layouter).ApplyScenePos() // computes updated positions |
| 105 | fr.NeedsRender() |
| 106 | } |
| 107 | |
| 108 | // ScrollUpdateFromGeom updates the scrollbar for given dimension |
| 109 | // based on the current Geom.Scroll value for that dimension. |
nothing calls this directly
no test coverage detected