The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
I''d like to change the sensitivity for initiating a diagram node drag/drop operation. Often it happens that when you double-click on a node on the diagram, the diagram attempts to initiate a drag/drop operation actually moving the node.
Any help would be highly appreciated.
TIA
Kai Iske
ADAdministrator Syncfusion Team August 19, 2004 06:39 PM UTC
Hi Kai
You need to implement your own MoveTool. Refer to the Tools/MoveTool.cs file in the Essential Diagram Source. Refer to the node tracking code in the IMouseEventReceiver.MouseMove() in the lines below:
// Track the selected nodes as they move:
Here you could add code to change the sensitivity as per your requirements. (for eg, tracker.Move will be called only if say (ptDev.X - this.startingPoint.X)>2)
Another issue currently is that there is no UnregisterTool method in the Controller, but the Diagram Team is going to add this method which will facilitate unregistering the default Tool and then registering your custom Tool. So currently you will have to use reflection to get hold of the private members of the Controller (mouseEventReceivers in this case).
Regards
Arun