Skip to content

Commit

Permalink
(viewer) Fix touch event not triggered error
Browse files Browse the repository at this point in the history
  • Loading branch information
violet-dev committed Jun 16, 2021
1 parent 32b9e0b commit ec30a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pages/viewer/viewer_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1115,9 +1115,9 @@ class __VerticalImageViewerState extends State<_VerticalImageViewer>
void _touchEvent() {
final width = MediaQuery.of(context).size.width;
if (_doubleTapDetails.localPosition.dx < width / 3) {
if (Settings.disableOverlayButton) _leftButtonEvent();
if (!Settings.disableOverlayButton) _leftButtonEvent();
} else if (width / 3 * 2 < _doubleTapDetails.localPosition.dx) {
if (Settings.disableOverlayButton) _rightButtonEvent();
if (!Settings.disableOverlayButton) _rightButtonEvent();
} else {
_middleButtonEvent();
}
Expand Down

0 comments on commit ec30a2b

Please sign in to comment.