mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 03:32:06 +00:00
Merge pull request #553 from Schnitzel5/reader/zoom-swipe
allow to swipe pages even if zoomed in
This commit is contained in:
commit
82cdd7d28f
1 changed files with 2 additions and 4 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue