First we need to add some Touch event handlers. These are blocks of code that will tell the app to draw a dot when the user taps the screen.
In the Blocks editor, open the drawer for Canvas1 and drag the when Canvas1.Touched event handler block to the Viewer.
Open the drawer for Canvas1, drag out the call Canvas1.DrawCircle command block and snap it to the when Canvas1.Touched block. There are four slots in this command block:
Hover the mouse over the when Canvas1.Touched block to pull out the get x and get y blocks that you need. This gives you the coordinates (x, y) where the screen is touched.
The code should look like this:
Test the code!