Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag&Drop on a touch device #418

Closed
KKauK opened this issue Nov 22, 2021 · 4 comments · Fixed by #444
Closed

Drag&Drop on a touch device #418

KKauK opened this issue Nov 22, 2021 · 4 comments · Fixed by #444
Labels
Milestone

Comments

@KKauK
Copy link

KKauK commented Nov 22, 2021

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

@KKauK KKauK added the Bug label Nov 22, 2021
@GioviQ
Copy link

GioviQ commented Dec 7, 2021

I experience the same issue.

@KKauK
Copy link
Author

KKauK commented Jan 14, 2022

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?

@punker76
Copy link
Owner

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

@KKauK
Copy link
Author

KKauK commented Jan 14, 2022

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

dmg-hamann added a commit to dmg-hamann/gong-wpf-dragdrop that referenced this issue Jun 9, 2022
dmg-hamann added a commit to dmg-hamann/gong-wpf-dragdrop that referenced this issue Jun 9, 2022
punker76 added a commit to dmg-hamann/gong-wpf-dragdrop that referenced this issue Aug 29, 2022
punker76 added a commit to dmg-hamann/gong-wpf-dragdrop that referenced this issue Aug 29, 2022
@punker76 punker76 added this to the 3.2.0 milestone Aug 29, 2022
punker76 added a commit to dmg-hamann/gong-wpf-dragdrop that referenced this issue Sep 3, 2022
punker76 added a commit to dmg-hamann/gong-wpf-dragdrop that referenced this issue Sep 3, 2022
punker76 added a commit that referenced this issue Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants