make canvas auto-focus smarter