@schenglooi – I was curious why ScrollableGroups
are a new node type instead of just a property on a normal Group
node, like stack groups?
From an API perspective, there’s nothing special about them, other than a new node type to deal with when recursively scanning a scenegraph.
1 Like
Mainly because ScrollableGroups are internally a new scenegraph node. There are other behavior differences, for example, resizing a scrollable group, resizes its viewport rather than resizes the content of the group.
Yes, I realize it’s a new internal node type, which is exposed to us via the API, but I was curious what engineering considerations made a new node type required, vs just adding a new property to a normal Group
that changed its behavior.