summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AndroidManifest.xml2
-rw-r--r--src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java15
2 files changed, 9 insertions, 8 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 2f0c51f..82725fb 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttcomics"
- android:versionCode="14"
+ android:versionCode="15"
android:versionName="1.0.7" >
<uses-sdk
diff --git a/src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java b/src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java
index f958bb9..c189cf8 100644
--- a/src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java
+++ b/src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java
@@ -112,13 +112,6 @@ public class ImageViewTouch extends ImageViewTouchBase {
}
break;
}
- if (mScaleChangedListener != null) {
- RectF bitmapRect = getBitmapRect();
-
- boolean widthFits = getWidth() >= (bitmapRect.right - bitmapRect.left);
-
- mScaleChangedListener.onScaleChanged(mCurrentScaleFactor, widthFits);
- }
return true;
}
@@ -126,6 +119,14 @@ public class ImageViewTouch extends ImageViewTouchBase {
protected void onZoom( float scale ) {
super.onZoom( scale );
if ( !mScaleDetector.isInProgress() ) mCurrentScaleFactor = scale;
+
+ if (mScaleChangedListener != null) {
+ RectF bitmapRect = getBitmapRect();
+
+ boolean widthFits = getWidth() >= (bitmapRect.right - bitmapRect.left);
+
+ mScaleChangedListener.onScaleChanged(mCurrentScaleFactor, widthFits);
+ }
}
protected float onDoubleTapPost( float scale, float maxZoom ) {