You can tap with two fingers to bring up the menu. Your character will still move, but only by 1 tile in the direction that you tapped. Position yourself 1 tile away from the location of the treasure and two finger tap to dig successfully.
Two finger tap can also be used to exit out of dialogues and stuff.