Open f13T2ach opened 2 months ago
Hello and thanks for the report, I am sorry I am not able to completely understand.
I've also experienced this in Avalonia, but I'm not able to identify exactly what causes the bug. As @f13T2ach says, the pointer release event is sometimes not handled or detected correctly, and so the mouse becomes 'stuck' to the graph.
This causes the graph to pan with the mouse, which can be particularly annoying when the user has set custom limits.
I'm sure that expected behaviour here is simply that graphs should only ever pan when the user has a)clicked initially on the graph and b) has not released the pointer since that click.
I'll try and do some investigation into exactly what causes this bug, as I'm not sure if is is the pointer release or click (or both) that are prone to error.
This issue seems complicated to replicate, I am not able to get this :(
Describe the bug In the given example, the mouse release event cannot get caught properly, this makes it difficult to pan the chart.
To Reproduce Since the first time i click the chart(or the whole user control), the mouse was like sticking on the chart. which means even though i had released my mouse left button, as long as my mouse hovers the chart and move, the chart will move together unexpectedly. here is my code.
Expected behavior Mouse released, the chart won't be influenced by the action of the mouse
Screenshots Screenshots are useless in this question i think. If you need, I can record gif.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context I'm a WPF beginner, I cant find a resolution for this problem. If this is a bug, it is good for you and me. If not, I hope you can teach me.