How a Screen Knows Where Your Finger Is
When you tap a phone screen, nothing seems to happen except a gentle touch. Yet within a tiny fraction of a second, the phone knows exactly where your finger is. Most phone screens use a design called capacitive sensing, and it depends on the fact that the human body conducts a small amount of electricity.
Under the top layer of glass lies a thin grid of transparent electrodes, arranged in rows and columns like the lines on graph paper. The electrodes are so fine and so clear that you cannot see them. The phone sends a weak electric charge into the grid, and this creates a faint electric field above the screen at every crossing point of the grid.
When your fingertip comes close, it disturbs that field. Your finger is a conductor, and it draws away a tiny amount of charge from the spot beneath it. Circuits connected to the grid measure the change at each crossing. The crossing with the biggest change tells the phone where you touched, and the phone can compare many crossings at once to follow several fingers.
This explains some everyday puzzles. A plain leather or woolen glove usually will not work, because the glove is a poor conductor and keeps your finger from disturbing the field. Gloves with conductive threads in the fingertips solve the problem. So does a stylus made with a conductive tip. A fingernail or a plastic pen fails for the same reason as the glove.
Older touchscreens often worked by pressure, with two flexible layers that pressed together. Capacitive screens need almost no force, which is why a light swipe is enough.