Click here to Skip to main content
15,848,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In windows 10 Tab, I have created a sample application contains list control with customized horizontal and vertical scroll bar. While scrolling in vertical scroll bar through touch, sometimes WM_GESTURE message become generated. But in the case of horizontal scrollbar, the issue is not occurred. what is the reason for this behavior change... If anybody identified this behavior in touch.

What I have tried:

Issue is only occurred in vertical scroll bar only. Horizontal scroll bar have no issue.
Updated 6-Mar-18 22:06pm

1 solution

The gesture that performs vertical scrolling is called single-finger panning. When having no gesture support, the events will be "translated" to scroll wheel events. You will only see vertical events because there is no horizontal scroll wheel and horizontal panning is interpreted as dragging. See Windows Touch Gestures Overview (Windows)[^] for an overview of gestures and the corresponding mouse actions.

The WM_GESTURE messages are send for vertical events to implement enhanced panning as described at Improving the Single-Finger Panning Experience (Windows)[^].
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900