ratishphilip / wpfspark

A rich UserControl library to enhance the look and feel of WPF applications.
http://www.codeproject.com/Articles/1060961/WPFSpark-v
MIT License
549 stars 84 forks source link

Fix drag starting immediately #18

Open jgonzalez-stw opened 1 year ago

jgonzalez-stw commented 1 year ago

Normally in Windows drag should only start after the cursor has moved some distance from the initial click point to avoid the UI response to be too oversensitive.

jgonzalez-stw commented 1 year ago

Github's diff viewer shows many changes, but the solution is simple, basically it consists in changing BeginFluidDragAsync to just store the initial click position and then in FluidDragAsync check if the cursor has moved enough from the initial position and only do what it was doing originally once that threshold has been exceeded.