dotnet / dotnet/wpf

WPF can not work well with set IsPressAndHoldEnabled to false when enable pointer message

Open
#3,379 4 comments 7 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

* .NET Core Version: 3.1.301
* Windows version: (`winver`)
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes

**Problem description:**

We can use `Stylus.IsPressAndHoldEnabled="False"` to hide the touch feedback when we enable touch feedback in Windows 10.

It can work well when we do not enable the WM_Pointer message.

How to enable touch feedback in Windows 10? See [3 Ways to Enable or Disable Touch Feedback in Windows 10](https://www.top-password.com/blog/enable-or-disable-touch-feedback-in-windows-10/ )

**Actual behavior:**

We can find the touch feedback when we enable WM_Pointer message.

![](http://image.acmx.xyz/lindexi%2FWPF%2520can%2520not%2520work%2520well%2520with%2520set%2520IsPressAndHoldEnabled%2520to%2520false%2520when%2520enable%2520pointer%2520message.gif)

**Expected behavior:**

The behavior of the WPF application is the same as before enable the WM_Pointer message.

We can use `Stylus.IsPressAndHoldEnabled="False"` to hide the touch feedback. When we hold the screen, the gray rectangle is not displayed.

**Minimal repro:**

https://github.com/lindexi/lindexi_gd/tree/41884562/KemjawyecawDurbahelal

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.