https://bugs.winehq.org/show_bug.cgi?id=42897
--- Comment #2 from Mildred mildred-bug.winehq@mildred.fr --- The one thing that may be different but not shown on the logs, is the event time. The trackpad right-click is a single tap on the surface and the press and release events probably happens at the same time. The real mouse however has a distinct press and release time.
Perhaps the application needs time to register a right click is proceeding, and receiving both press and release events at the same time make the application ignore those events.
This can be confirmed by the X11 events I can get with xev. Lest tap on the trackpad have different times for press and release events while two finger tap (corresponding to right click) have the same time for press and release events.
The application may not be capable of ordering events that have the same timestamp.
perhaps this is to be corrected in the libinput driver instead of within wine itself.