diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt index 8a8e4de..9f9d8cc 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt @@ -182,12 +182,16 @@ class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) { mWasMovingCanvasInGesture = false } MotionEvent.ACTION_POINTER_DOWN -> { - mWasMultitouch = true - mTouchSloppedBeforeMultitouch = mLastMotionEvent.isTouchSlop(pointerIndex, mStartX, mStartY) + if (mAllowMovingZooming) { + mWasMultitouch = true + mTouchSloppedBeforeMultitouch = mLastMotionEvent.isTouchSlop(pointerIndex, mStartX, mStartY) + } } MotionEvent.ACTION_POINTER_UP -> { - mIgnoreTouches = true - actionUp(!mWasScalingInGesture && !mWasMovingCanvasInGesture) + if (mAllowMovingZooming) { + mIgnoreTouches = true + actionUp(!mWasScalingInGesture && !mWasMovingCanvasInGesture) + } } }