2

I've created a WPF touchscreen application at work.

When I use a mouse, it behaves as you would expect. However, when using the touchscreen it doesn't behave as it should. It will regularly lag on a PreviewMouseDown touch event, and sometimes won't actually respond at all. Other times it works fine.

Does anybody know what could cause this behaviour, and what can I do to resolve it?

Many thanks

Saoirse
  • 237
  • 2
  • 16

1 Answers1

0

In researching the issue for someone over at EE, I ran across this post. Essentially, the PreviewTouchDown event does not occur until a finger touches the screen and moves. The answering post author goes on to say

To cause the PreviewTouchDown event to occur as soon as a finger touches the screen, set the Stylus.IsPressAndHoldEnabled attached property to false for this element.

This solution was posted in early 2014 and hasn't been rebutted, so it should work.

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
azarc3
  • 1,277
  • 13
  • 21