Touch to focus not getting the accurate focus area
I am using Camera2 API for my app to communicate to camera device of android device, Then I'm trying to make a touch to focus feature unfortunately the focus area is not accurate. I was tried different work around and suggestions in google but I can't get the right focus area when I touch the screen. Is there anyone here make this feature working smoothly using kotlin?
here's the snippet of my code the calculate the focus area
val sensorArraySize: Rect? =...