ok ... the versions you find on my GitHub for 4.0 inches are all 100% working ... I assure you.
I think you should see if your screen has reversed touch commands .... I have one of them as well ... in this case you have to adapt the various options that are indicated in the sketch by doing different tests until you guess which one uses the your screen.
But is the display accurate or not ??? put a photo if you can.