This article explains how to calibrate the touchscreen of your Android 4.0 or later.
How to Calibrate Your Touchscreen on Android
Here's how to use the Touchscreen Calibration app, which is free and available for download from the Google Play Store.
Open the app and tap Calibrate.
Follow the instructions to perform actions on the test pad in the app until your device passes all tests.