dotnet / dotnet/wpf

A line appears when you Touch the upper left corner of the InkCanvas control in a WPF program for the first ten times.

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

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/A-line-appears-when-you-Touch-the-upper-/10630846)._

---
[severity:It's more difficult to complete my work]
When .net6 performs TouchDown events for the first ten times in the upper left corner of the InkCanvas control in the WPF program, a cable-stayed line will appear. The cable-stayed line persists during TouchMove and disappears during TouchUp.
The device I am using now is Surface, the Windows system version is Windows10 Home Edition, the internal operating system version is 19045.4170, the target framework of the project is net6.0-windows, and the target runtime is win-x86. The line does not appear when drawing with the surface pen. It only appears when you Touch the top left area of the control with your finger ten times, and it does not appear with the mouse. This phenomenon has also occurred before when running on a large screen machine.
To reproduce this step, you only need to touch the touchable device in the upper left corner of the software. This phenomenon will inevitably occur for the first ten times: a cable-stayed line will appear during TouchDown event, it will persist during TouchMove, and it will disappear during TouchUp.
The development tool I use is Visual Studio 2022.
[31b1d41cf1f9dcfff83274d1240ac384.mp4](https://aka.ms/dc/file?name=Bc7d5908e980a4aaaac416d050ef2655f638477306187591976_31b1d41cf1f9dcfff83274d1240ac384.mp4&tid=c7d5908e980a4aaaac416d050ef2655f638477306187591976)

![n3gwa05e.png](https://aka.ms/dc/image?name=B766e9166b3af4d7b84545496ba230887638477304641235466_n3gwa05e.png&tid=766e9166b3af4d7b84545496ba230887638477304641235466)
![l2zg385o.png](https://aka.ms/dc/image?name=B215bb176588d4d03b9e2b1ec35db41da638477304895793055_l2zg385o.png&tid=215bb176588d4d03b9e2b1ec35db41da638477304895793055)

---
### Original Comments

#### Feedback Bot on 4/3/2024, 02:42 PM:

(private comment, text removed)
#### 宇杰 田 on 6/26/2024, 06:52 AM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

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.