Readonlycontentadd the rows to scroll here
Readonlyontrue once the pointer travelled far enough to count as a drag rather than a tap
how far the content can scroll; 0 when it all fits
where the scrollbar's thumb sits and how tall it is, in the box's own space
the viewport's width, the other half of the box's hitArea
Removes all internal references and listeners as well as removes children from the display list.
Do not use a Container after calling destroy.
Optionaloptions: DestroyOptions
Options parameter. A boolean will act as if all options have been set to that value
the pointer moved while down; the content follows once it has travelled a few pixels
a finger or button went down at y (any one coordinate space, time in seconds)
Scrolls for a key a keyboard-driven list was handed (KeyboardEvent.key).
true when the key is one this box scrolls by, so a caller can stop it going further
scrolls just enough to bring a height-tall item at top fully into view
a click on the track at local y puts the thumb's centre there
the thumb moved to y: the offset follows in proportion to the thumb's travel
the thumb was grabbed at y
advances touch coasting; call once a frame from the owning scene's update
A clipped viewport with a scrollbar: put rows in
contentand they scroll inside the box, everything outside it hidden by a mask. The scrollbar is drawn from the theme; the wheel,scrollByandscrollIntoViewall run throughscrollOffset, so they clamp the same way. The box owns itshitArea(its viewport, kept current byresizeandsetContentHeight), so a wheel over the empty part of the viewport reaches it instead of needing a row under the pointer to bubble from.touch: truelets a finger drag the content (a drag ends the tap on the rows under it) and coast on release,keyboard: truemakeshandleKeyscroll by line, page and to the ends, the scrollbar's thumb can be dragged and its track clicked, andautoHeightsizes the viewport to the content up toheight. Callupdate(dt)each frame for the coasting.Example