camera-ui2 uses the same auto-focus function as the stock camera-ui, it is part of the camera-api (gstphotography) And I saw some wired auto-focus behavior with the stock camera-ui as well.
Do you have syslog installed and can you look if there are any error messages logged.