The following procedure will configure X Windows so a long-touch (touch and hold) will simulate a right-click and display a context menu.
sudo apt install xserver-xorg-input-evdev sudo mkdir -p /etc/X11/xorg.conf.d/
Section "InputClass" Identifier "touchscreen right-click" Driver "evdev" MatchProduct "Microchip Technology Inc. AR1100 HID-MOUSE" Option "EmulateThirdButton" "1" Option "EmulateThirdButtonTimeout" "750" Option "EmulateThirdButtonMoveThreshold" "50" EndSection
For more information about the options and their syntax please see the evdev manpage and the InputClass configuration options.