Cast the node to given type if it accepts scroll.
In addition to performing a dynamic cast, this checks if the node can handle a specified scroll value according to its HoverScrollable.canScroll method. If it doesn't, it will fail the cast.
Node to cast.
Pointer used for scrolling. Different values may be accepted depending on the scroll value or position.
Node casted to Scrollable, or null if the node can't be casted, or the motion would not have effect.
See Implementation
Cast the node to given type if it accepts scroll.
In addition to performing a dynamic cast, this checks if the node can handle a specified scroll value according to its HoverScrollable.canScroll method. If it doesn't, it will fail the cast.