From 614a5a2cc3f211607d79e1874d0e5cd538386035 Mon Sep 17 00:00:00 2001 From: Mattia Iavarone Date: Wed, 12 Dec 2018 12:05:02 +0100 Subject: [PATCH] Fix click listeners --- .../src/main/java/com/otaliastudios/zoom/ZoomImageView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/src/main/java/com/otaliastudios/zoom/ZoomImageView.java b/library/src/main/java/com/otaliastudios/zoom/ZoomImageView.java index 16d9af0..fd00a06 100644 --- a/library/src/main/java/com/otaliastudios/zoom/ZoomImageView.java +++ b/library/src/main/java/com/otaliastudios/zoom/ZoomImageView.java @@ -88,7 +88,8 @@ public void setImageDrawable(@Nullable Drawable drawable) { @SuppressLint("ClickableViewAccessibility") @Override public boolean onTouchEvent(MotionEvent ev) { - return mEngine.onTouchEvent(ev) || super.onTouchEvent(ev); + // Using | so click listeners work. + return mEngine.onTouchEvent(ev) | super.onTouchEvent(ev); } @Override