Open darkwater opened 1 month ago
Wouldn't it be sufficient to just keep a Rect? last;
on RenderGlobalRect
and compare before calling onChange
? The only thing I mean is that onChange
shouldn't be called twice in a row with the same Rect
.
The only thing I mean is that
onChange
shouldn't be called twice in a row with the sameRect
.
ohh then yeah we should do this
The issue is that to do this we need to know the global offset of the current frame to compare with the previous global offset and decide whether to call onChange.
The global offset is set in the
layout
phase and I couldn't find any callback that fires after the layout phase without triggering thepaint
phase and using thepaint
callback. (paint is after layout)