High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): allow gestures in asset viewer before image is loaded (#21354)
Mert227789225ab9
diff --git a/mobile/lib/widgets/photo_view/src/photo_view_wrappers.dart b/mobile/lib/widgets/photo_view/src/photo_view_wrappers.dartindex 65037dde96..a2ad04e6b5 100644--- a/mobile/lib/widgets/photo_view/src/photo_view_wrappers.dart+++ b/mobile/lib/widgets/photo_view/src/photo_view_wrappers.dart@@ -172,12 +172,36 @@ class _ImageWrapperState extends State<ImageWrapper> {@overrideWidget build(BuildContext context) {- if (_loading) {- return _buildLoading(context);- }-- if (_lastException != null) {- return _buildError(context);+ if (_loading || _lastException != null) {+ return CustomChildWrapper(+ childSize: null,+ backgroundDecoration: widget.backgroundDecoration,+ heroAttributes: widget.heroAttributes,+ scaleStateChangedCallback: widget.scaleStateChangedCallback,+ enableRotation: widget.enableRotation,+ controller: widget.controller,+ scaleStateController: widget.scaleStateController,+ maxScale: widget.maxScale,+ minScale: widget.minScale,+ initialScale: widget.initialScale,+ basePosition: widget.basePosition,+ scaleStateCycle: widget.scaleStateCycle,+ onTapUp: widget.onTapUp,+ onTapDown: widget.onTapDown,+ onDragStart: widget.onDragStart,+ onDragEnd: widget.onDragEnd,+ onDragUpdate: widget.onDragUpdate,+ onScaleEnd: widget.onScaleEnd,+ onLongPressStart: widget.onLongPressStart,+ outerSize: widget.outerSize,+ gestureDetectorBehavior: widget.gestureDetectorBehavior,+ tightMode: widget.tightMode,+ filterQuality: widget.filterQuality,+ disableGestures: widget.disableGestures,+ disableScaleGestures: true,+ enablePanAlways: widget.enablePanAlways,+ child: _loading ? _buildLoading(context) : _buildError(context),+ );}final scaleBoundaries = ScaleBoundaries(