In this example I set the bullet speed to the distance between the cannon and the mouse/touch * 2.
2 is just a random number that i tought looked good in that case, you can adjust it for your needs, also, add a scroll to behaviour to the bullet so the camera follows it.