diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index a6a8ee3..d39148b 100644 Binary files a/.idea/caches/build_file_checksums.ser and b/.idea/caches/build_file_checksums.ser differ diff --git a/howellsdk/src/main/java/com/howellsdk/api/player/ZoomableTextureView.java b/howellsdk/src/main/java/com/howellsdk/api/player/ZoomableTextureView.java index 238299f..e052856 100644 --- a/howellsdk/src/main/java/com/howellsdk/api/player/ZoomableTextureView.java +++ b/howellsdk/src/main/java/com/howellsdk/api/player/ZoomableTextureView.java @@ -18,7 +18,7 @@ public class ZoomableTextureView extends GLESTextureView { public interface OnTouchCb{ - void onTouchCb(View view,MotionEvent motionEvent); + boolean onTouchCb(View view,MotionEvent motionEvent); } private static final String SUPERSTATE_KEY = "superState"; private static final String MIN_SCALE_KEY = "minScale"; @@ -119,7 +119,7 @@ public ZoomOnTouchListeners() { @Override public boolean onTouch(View view, MotionEvent motionEvent) { - + boolean ret = true; mScaleDetector.onTouchEvent(motionEvent); matrix.getValues(m); @@ -135,7 +135,7 @@ public boolean onTouch(View view, MotionEvent motionEvent) { break; case MotionEvent.ACTION_UP: if (mCb!=null && mode != ZOOM){ - mCb.onTouchCb(view,motionEvent); + ret = mCb.onTouchCb(view,motionEvent); } mode = NONE; break; @@ -167,7 +167,7 @@ else if (x + deltaX < -right) } ZoomableTextureView.this.setTransform(matrix); ZoomableTextureView.this.invalidate(); - return true; + return ret; } private class ScaleListener extends ScaleGestureDetector.SimpleOnScaleGestureListener {