From 65a9ecfc71ed58b68e8ab572dfef8a041faa6b75 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Wed, 21 Apr 2021 03:44:28 +0800 Subject: [PATCH] Disable swiping in viewer on web It hardly works --- lib/widget/viewer.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widget/viewer.dart b/lib/widget/viewer.dart index 9f7b7eda..ac09b03d 100644 --- a/lib/widget/viewer.dart +++ b/lib/widget/viewer.dart @@ -122,7 +122,7 @@ class _ViewerState extends State with TickerProviderStateMixin { controller: _pageController, itemCount: widget.streamFiles.length, itemBuilder: _buildPage, - physics: _canSwitchPage() + physics: !kIsWeb && _canSwitchPage() ? null : const NeverScrollableScrollPhysics(), ),