Avoid conflicting double-tap zoom gestures
This commit is contained in:
@@ -96,6 +96,9 @@ class ZoomImageView @JvmOverloads constructor(
|
||||
|
||||
init {
|
||||
scaleType = ScaleType.MATRIX
|
||||
// We implement double-tap-and-drag ourselves below. Leaving Android's
|
||||
// quick-scale enabled makes both handlers modify the same matrix.
|
||||
scaleDetector.isQuickScaleEnabled = false
|
||||
}
|
||||
|
||||
override fun setImageBitmap(bitmap: Bitmap?) {
|
||||
|
||||
Reference in New Issue
Block a user