allow to swipe pages even if zoomed in

This commit is contained in:
Schnitzel5 2025-08-15 22:07:44 +02:00
parent 22087752f1
commit 226c6b145e

View file

@ -640,7 +640,7 @@ class _MangaChapterPageGalleryState
reverse: _isReverseHorizontal,
physics: const ClampingScrollPhysics(),
canScrollPage: (_) {
return _horizontalScaleValue == 1.0;
return true;
},
itemBuilder: (context, index) {
if (index < _uChapDataPreload.length &&
@ -693,9 +693,7 @@ class _MangaChapterPageGalleryState
reverse: _isReverseHorizontal,
physics: const ClampingScrollPhysics(),
canScrollPage: (gestureDetails) {
return gestureDetails != null
? !(gestureDetails.totalScale! > 1.0)
: true;
return true;
},
itemBuilder: (BuildContext context, int index) {
if (_uChapDataPreload[index]