Skip to content

Commit

Permalink
## [0.2.6]
Browse files Browse the repository at this point in the history
* fix issue that wrong behavior of page view scroll when image is zoom in.
  • Loading branch information
zmtzawqlp committed Apr 15, 2019
1 parent c6fa237 commit ad18afa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.2.6]

* fix issue that wrong behavior of page view scroll when image is zoom in.

## [0.2.5]

* add onDoubleTap parameter to custom double tap behavior under ExtendedImageMode.Gesture
Expand Down
4 changes: 3 additions & 1 deletion lib/src/gesture/extended_image_gesture_page_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ class ExtendedImageGesturePageViewState
if (extendedImageGestureState != null) {
var gestureDetails = extendedImageGestureState.gestureDetails;
if (gestureDetails != null) {
if (gestureDetails.movePage(delta)) {
final int currentPage = pageController.page.round();
if (gestureDetails.movePage(delta) ||
(pageController.page != currentPage)) {
_drag?.update(details);
} else {
extendedImageGestureState.gestureDetails = GestureDetails(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: extended_image
description: extended official image with loading/failed state,cache network,zoom/pan,photo view,crop,save,clip,paint custom.
version: 0.2.5
version: 0.2.6
author: zmtzapxh <zmtzapxhlp@live.com>
homepage: https://github.com/fluttercandies/extended_image

Expand Down

0 comments on commit ad18afa

Please sign in to comment.