Hi,
We are in the process of replacing our camera2 code with CameraX. Overall we're super happy with it, but I got one piece of negative feedback and I'm not sure how to improve it.
-------------------------------------------------------------------------------------------------------
When using 2 fingers to try and zoom in, there is about a slight (but noticeable) delay between your action and the camera catching up to zoom.
Pixel 5
Pixel 6
Galaxy S22+
-------------------------------------------------------------------------------------------------------
I imagine zoom is a processing intense operation if you keep having to redraw the preview, but if that is the case it seems weird the delay is just at the beginning of the action and not a laggy-feel throughout.
Based on this
similar issue with scrolling, I tried changing (in the android studio debugger, not with reflection):
- mMinSpan
- mTouchSlopSquare
- both of the above at the same time
But there was no noticeable difference. So it doesn't look like implementing custom gesture detection would help (and I don't like deviating from standard infrastructure because it's gonna cause a headache later).
Are there any known issues with zoom in general or with certain configurations? Or any suggested workarounds?
Let me know if there's anymore information I can provide and thanks,
Taylor Stephenson