Baseflow / Baseflow/PhotoView

OnPhotoTapListener not called when setZoomable(false)

Open
#746 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
18.8k
Forks
3.9k
PR merge metrics
No merged PRs in 30d

Description

I'm using the PhotoView to display a camera stream which I do not want to be zoomable by the user.

I have the following code:

```
imageView = findViewById(R.id.overlayimageview);
imageView.setZoomable(false);

imageView.setOnPhotoTapListener(new OnPhotoTapListener()
{
@Override
public void onPhotoTap(ImageView view, float x, float y)
{
}
}
```

However the onPhotoTap is never called when zoomable is set to false.

Any suggestions or work arounds?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.