TouchImageView icon indicating copy to clipboard operation
TouchImageView copied to clipboard

How to override double tap event?

Open uragiristereo opened this issue 2 years ago • 2 comments

I want to change the on double tap behavior i tried to use setOnDoubleTapListener but it's still zooming.

touchImageView.setOnDoubleTapListener(object : OnDoubleTapListener {
    override fun onSingleTapConfirmed(e: MotionEvent): Boolean {
        return true
    }

    override fun onDoubleTap(e: MotionEvent): Boolean {
        Timber.i("double tapped")
        return false
    }

    override fun onDoubleTapEvent(e: MotionEvent): Boolean {
        return false
    }
})

uragiristereo avatar Dec 10 '21 02:12 uragiristereo