mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt: RepaintBoundary (#1840)
* opt: RepaintBoundary * fix [skip ci] * opt time width * opt: video position * update --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
a63ca93762
commit
d7d9655f81
@@ -226,13 +226,14 @@ abstract class MarqueeRender extends RenderBox
|
||||
if (_distance > 0) {
|
||||
updateSize();
|
||||
_ticker.initIfNeeded(_onTick);
|
||||
markNeedsCompositingBitsUpdate();
|
||||
} else {
|
||||
_ticker.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
bool get isRepaintBoundary => true;
|
||||
bool get isRepaintBoundary => _ticker._ticker != null;
|
||||
|
||||
void paintCenter(PaintingContext context, Offset offset) {
|
||||
if (_direction == Axis.horizontal) {
|
||||
|
||||
Reference in New Issue
Block a user