My ZS40 camera autofocus function stopped working. I have tried changing the focus modes back and forth and even resetting but the problem resets. I bought the camera for cheap but it would be great if I can get this issue resolved.
The problem might be due to dirt clogging the sensors of the camera. Dirt in the air can always get into the camera as you use it. This dirt might have clogged it up made the autofocus feature unresponsive. Luckily, there is a fix for this, you can look it up on Youtube. The fix is bit risky and advise that if you still have the warranty you should get it replaced.
Pocket sized cameras tend to be quite fragile which is expected given their cost.
I hope you this comment helps you with your issue.