Merge pull request #553 from Schnitzel5/reader/zoom-swipe

allow to swipe pages even if zoomed in
This commit is contained in:
Moustapha Kodjo Amadou 2025-08-18 13:14:02 +01:00 committed by GitHub
commit 82cdd7d28f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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]