mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
limitImageWidth
should only be enabled with ReaderMode.continuousTopToBottom
This commit is contained in:
@@ -223,7 +223,7 @@ class _GalleryModeState extends State<_GalleryMode>
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void handleLongPressDown(Offset location) {
|
void handleLongPressDown(Offset location) {
|
||||||
if(!appdata.settings['enableLongPressToZoom']) {
|
if (!appdata.settings['enableLongPressToZoom']) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var photoViewController = photoViewControllers[reader.page]!;
|
var photoViewController = photoViewControllers[reader.page]!;
|
||||||
@@ -237,7 +237,7 @@ class _GalleryModeState extends State<_GalleryMode>
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void handleLongPressUp(Offset location) {
|
void handleLongPressUp(Offset location) {
|
||||||
if(!appdata.settings['enableLongPressToZoom']) {
|
if (!appdata.settings['enableLongPressToZoom']) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var photoViewController = photoViewControllers[reader.page]!;
|
var photoViewController = photoViewControllers[reader.page]!;
|
||||||
@@ -473,7 +473,9 @@ class _ContinuousModeState extends State<_ContinuousMode>
|
|||||||
);
|
);
|
||||||
var width = MediaQuery.of(context).size.width;
|
var width = MediaQuery.of(context).size.width;
|
||||||
var height = MediaQuery.of(context).size.height;
|
var height = MediaQuery.of(context).size.height;
|
||||||
if(appdata.settings['limitImageWidth'] && width / height > 0.7) {
|
if (appdata.settings['limitImageWidth'] &&
|
||||||
|
width / height > 0.7 &&
|
||||||
|
reader.mode == ReaderMode.continuousTopToBottom) {
|
||||||
width = height * 0.7;
|
width = height * 0.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -521,7 +523,7 @@ class _ContinuousModeState extends State<_ContinuousMode>
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void handleLongPressDown(Offset location) {
|
void handleLongPressDown(Offset location) {
|
||||||
if(!appdata.settings['enableLongPressToZoom']) {
|
if (!appdata.settings['enableLongPressToZoom']) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
double target = photoViewController.getInitialScale!.call()! * 1.75;
|
double target = photoViewController.getInitialScale!.call()! * 1.75;
|
||||||
@@ -534,7 +536,7 @@ class _ContinuousModeState extends State<_ContinuousMode>
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void handleLongPressUp(Offset location) {
|
void handleLongPressUp(Offset location) {
|
||||||
if(!appdata.settings['enableLongPressToZoom']) {
|
if (!appdata.settings['enableLongPressToZoom']) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
double target = photoViewController.getInitialScale!.call()!;
|
double target = photoViewController.getInitialScale!.call()!;
|
||||||
|
Reference in New Issue
Block a user