Hi. I'm David, and I'm happy to help you.
If the touchscreen and touchpad (mouse pad) work in UEFI, the problem is likely driver-related.
I suggest you download and install HP Support Assistant and update all drivers on your computer.
https://support.hp.com/us-en/help/hp-support-assistant
You need to install HP Support Assistant and then use it to update your drivers. Only installing the app will not update the drivers.
I'm suggesting HP Support Assistant because it can also identify and fix some problems, as well as being useful for installing and updating drivers on HP devices.
If the problem persists, please let me know.
Feel free to ask any questions you may have.
Standard Disclaimer: There is a link to a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.