Win10 – how to make press-and-hold on touchmonitor send "longpress" to program [on hold]

I have a Windows program that uses long-press to perform an action.

When I press and hold on the touchscreen, Windows recognizes it as right mouse button click. If I disable it, it is still not recognized as long-press (left mouse button).

How can I make it so that when I tap and hold on the touchscreen, the action is recognized as LMB long-press