disable closing fullscreen media with down gesture at pinch

This commit is contained in:
tibbi 2019-01-17 16:33:51 +01:00
parent 127f01a553
commit 77b6c64ee9
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ class MyZoomableGifTextureView(context: Context, attrs: AttributeSet) : GifTextu
mLastTouchX = event.x mLastTouchX = event.x
mLastTouchY = event.y mLastTouchY = event.y
mCurrZoomMode = ZOOM_MODE_ZOOM mCurrZoomMode = ZOOM_MODE_ZOOM
mIgnoreCloseDown = true
} }
MotionEvent.ACTION_MOVE -> { MotionEvent.ACTION_MOVE -> {
if (mCurrZoomMode == ZOOM_MODE_ZOOM || mCurrZoomMode == ZOOM_MODE_DRAG && mSaveScale > MIN_VIDEO_ZOOM_SCALE) { if (mCurrZoomMode == ZOOM_MODE_ZOOM || mCurrZoomMode == ZOOM_MODE_DRAG && mSaveScale > MIN_VIDEO_ZOOM_SCALE) {