Works with touchpad and touchscreen emulation
Needs cleanup, style improvements and some testing
Screencast_from_2023-06-26_18-09-32