Disable swiping in viewer on web

It hardly works
This commit is contained in:
Ming Ming 2021-04-21 03:44:28 +08:00
parent 9c475b417d
commit 65a9ecfc71

View file

@ -122,7 +122,7 @@ class _ViewerState extends State<Viewer> with TickerProviderStateMixin {
controller: _pageController,
itemCount: widget.streamFiles.length,
itemBuilder: _buildPage,
physics: _canSwitchPage()
physics: !kIsWeb && _canSwitchPage()
? null
: const NeverScrollableScrollPhysics(),
),