Why is the screen acting weird while charging?
Problems with ghost touches on the screen while charging is very common when using third party chargers or cables. It is caused by electrical discharge in the form of either current or static charge. I'd toss that charger and/or cable away and buy an original one. Damage might have been cause already though which will most likely be seen by unusual battery draining (it can mess up the  calibration).