-
Notifications
You must be signed in to change notification settings - Fork 83
Specify range of items in visible rect for animation #132
Comments
The new approach for |
I have not looked at |
Oh, interesting. It might be useful to add a way to say "this child needs to be rendered regardless of its position relative to the viewport". Do you think that would help? |
Yes! That sounds about right. |
Here are more examples of animations on scrolling and resize that would break without this feature. Scrolling of NSTextView and custom grid view in AppKit: Resize of my own windowing/virtual collection view written in javascript. Without this feature, items would instantly disappear when resizing from wide to narrow, right to left: This also shows resize, but highlights why I think your solution for #64 will not be sufficient for grid animation. I will file an issue if I determine this to be the case. |
To animate items along the scroll axis, while scrolling, there is a need to specify a range of present items other than merely those that intersect the visible rect. I am a proponent of the data source pattern, but I know of no implementations sufficient for this, and I hope you will consider adding this feature. In my own javascript implementation I created a data source method, rangeOfItemsInRect. UITableView fails in this regard, as you can see in this video with exaggerated timing to show the effect:
https://www.youtube.com/watch?v=C1p9qEuMNns
This is not the only use, however. Animating reflow of a grid layout when resizing the viewport from wide to narrow would instantly change the non-animated visible range, which would need to be expanded to include items still animating, much like in the video from this comment:
#64 (comment)
The text was updated successfully, but these errors were encountered: