Help Arduino Mega 2560 + 3.2" TFT LCD

Where did you download your library from, can you provide a link. The values that are shown on screen fit where you touched the screen, but the display is off. I think the screen is set to 240x400, but the touchpad is set to 240x320. This would explain why when you touch the edge of the screen, you see 319, but the dot only goes 4/5 the way.

You need to calibrate your display / touch ratio and fix the CAL_X and CAL_Y values in the UTouchCD.h file.