Back then when I wrote these drivers I tested them together and they worked well. I didn’t see this problem.
I would need to try to reproducing it on my side to debug this. Currently I’m a bit busy, I hope I could find some time for this eventually.
Without debugging it’s hard to say what the problem is. I can only guess this could be something related to the shared SPI.
First thing I suggest trying out is testing this with different SPI hosts, to see if it’s related to shared SPI bus. ili9341 and xpt2046 can each be configured with different SPI host (spihost=esp.HSPI_HOST, spihost=esp.VSPI_HOST).
Maybe it’s related to the transposed width/height, worth checking if this happens without modifying this setting.
Maybe it’s related to the selection of pins (miso, mosi, clk, cs, dc, rst), perhaps these pins were configure for other purposes. Try changing to different pins.
Please try this out, if you can, and let me know the results.