HoverScrollable.shallowScrollTo

Scroll towards a specified child node, trying to get it into view.

interface HoverScrollable
shallowScrollTo

Parameters

child Node

Target node, a child of this node. Ideally, this node should appear on screen as a consequence of this action.

parentBox Rectangle

Padding box of this node, the node performing the scroll.

childBox Rectangle

Known padding box of the target child node.

Return Value

Type: Rectangle

A new padding box for the child node after applying scroll.

Meta