mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -100,9 +100,7 @@ class RenderLoadingIndicator extends RenderBox {
|
||||
..drawCircle(
|
||||
center,
|
||||
radius,
|
||||
paint
|
||||
..strokeWidth = strokeWidth
|
||||
..color = Colors.white,
|
||||
paint..color = Colors.white,
|
||||
)
|
||||
..drawCircle(
|
||||
center,
|
||||
|
||||
@@ -406,6 +406,9 @@ class _ViewerState extends State<Viewer> with SingleTickerProviderStateMixin {
|
||||
}
|
||||
final containerWidth = widget.containerSize.width;
|
||||
final imageWidth = _imageSize.width * _scale;
|
||||
if (imageWidth <= containerWidth) {
|
||||
return true;
|
||||
}
|
||||
final dx = (1 - _scale) * containerWidth / 2;
|
||||
final dxOffset = (imageWidth - containerWidth) / 2;
|
||||
if (initialPosition.dx < lastPosition.global.dx) {
|
||||
|
||||
Reference in New Issue
Block a user