I'm creating an app that involves taking some confirmation photos and uploading them, but when testing the Image Input component I've noticed that the camera in Retool does not refocus or let you control focus. The camera will acquire focus when you first open the component, but after that it will not refocus when pointed at an object at a different distance. You can technically get around this by switching to the front camera and then back to the rear camera, though this is not a great solution. There is also no tap-to-refocus functionality as there is with many mobile camera applications.
Is this a bug or a feature that has to be added? This would be a great quality of life upgrade to have for image input components.
Hey @cirno! I've experienced a similar issue. Sometimes when I open the camera, it’s out of focus and won’t refocus no matter what I do. I have to kill the app and reopen it for it to work properly.
Does it work fine after you kill the app, too? If so, looks like we’ve both hit the same bug!
Hey @Derek_Watts! From what I've seen it seems like anything that restarts the camera component (switching cameras, killing the app, closing the camera and reopening) will make it work as it only seems to acquire focus on startup.
Easy way to make it obvious is to startup the camera with it pointing at something very close, then trying to point it at anything further away. Everything will be completely out of focus as long as the camera remains open--even taking a photo won't reset the focus!
(On a slightly different note, having the ability to use your phone's flash could be nice too )
Thanks everyone for sharing your concerns. We're working on a way to fix this this and I've linked this conversation to the request. Will post here will any updates as they come.
My mistake @Derek_Watts. A fix has been made, but has not been deployed yet. Most likely this will happen sometime next week. I'll comment here when it's available!