negative distance retrieved from GetGestureInfo

孟轩 郝 11 Reputation points
2024-10-16T08:38:26.68+00:00

I have a secondary monitor with a touch screen. When handling the WM_GESTURE message with dwID GID_ZOOM, the low 32-bit of the ullArguments retrieved from GetGestureInfo, which indicates the distance between the two points as documented, is negative if I position the secondary monitor on the left of the primary monitor as shown below.User's image

This issue also occurs when dwID is GID_PAN or GID_TWOFINGERTAP

Windows development | Windows API - Win32
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.