punker76/gong-wpf-dragdrop

Drag&Drop on a touch device

KKauK opened this issue · 4 comments

KKauK commented

Trying to drag an item on a touch screen causes the mouse pointer to freeze for seconds and follow up the fingeer at random intervals. Please see the attached video sequence where the blue rectangle shows the current behaviour while the red rectangle shows the desired way.
The same operations show no problems if only the mouse pointer is used.

DragAndDrop.mp4

The problem seems to be caused by the SetWindowsHookEx in MouseHelper.cs

Attached is a fix for the problem based on the current sources. The fix uses a System.Windows.Threading.DispatcherTimer instead of the hook and can be activated by setting a new "MouseMoveTimerTriggered" attached property.

Please have a look a the modifications. It would be great if you could add them to you project.

I really apprechiate your work!!

DraDropTouch.zip

I experience the same issue.

KKauK commented

Hey @punker76, I really love your work and I know that you are doing all this on a voluntary base. But I have to ask if you had any chance to look a this issue or if you see any chance for the upcoming future?

@KKauK I have maybe the chance in the next weeks to test this with a physical touch device.

KKauK commented

@punker76 That sounds great;-). Just drop me a note if you need more information / support.