Up swipe stops working when connected for charging over wired
I have a iphone13 .When i put it for charging i see my predictive typing stops as well as my up swipe motion is disabled somehow so can’t swap apps etc. I remove the cable every thing is back to normal. Put the charger back inside and problem repeats.
What has been tried
1)i have original Apple charger and cable and is in immaculate condition so that is not the reason.
2)I tried to restart no use.
iPhone 13