Skip to content

Commit

Permalink
Disable filterQuality on twoPageMode
Browse files Browse the repository at this point in the history
  • Loading branch information
violet-dev committed Feb 3, 2024
1 parent 56570be commit 8a07b84
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/pages/viewer/horizontal_viewer_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ class _HorizontalViewerPageState extends State<HorizontalViewerPage> {
}

bool onTwoPageMode() {
return Settings.useTabletMode &&
MediaQuery.of(context).orientation == Orientation.landscape;
return MediaQuery.of(context).orientation == Orientation.landscape;
}

@override
Expand Down Expand Up @@ -293,9 +292,6 @@ class _HorizontalViewerPageState extends State<HorizontalViewerPage> {
minScale: PhotoViewComputedScale.contained * 1.0,
maxScale: PhotoViewComputedScale.contained * 5.0,
gestureDetectorBehavior: HitTestBehavior.opaque,
filterQuality: c.provider.useFileSystem
? SettingsWrapper.imageQuality
: SettingsWrapper.getImageQuality(c.imgQuality.value),
child: gestureDetector,
);
} else {
Expand Down

0 comments on commit 8a07b84

Please sign in to comment.