We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to prevent double click event in diagram?

I want to disable the doubleClick event in my diagram for certain cases. But event.cancel doesn't exist for 


3 Replies

GD Gobinath Dhamotharan Syncfusion Team March 2, 2023 01:41 PM UTC

Hi Basharat, 

We don’t have option to cancel the double click event, if you need to skip the event use separate conditions for your scenario. Still if you face any issues share us more details such as screenshot or video of your requirement. 

Regards, 

Gobinath 



KB Khadeeja Basharat March 7, 2023 09:16 AM UTC

Yes, I need to skip the default double-click event on annotation. It lets the user edit the annotation. I don't want to edit it on double click on the canvas. Is it possible?



BM Balasubramanian Manikandan Syncfusion Team March 8, 2023 07:37 AM UTC

Use AnnotationConstraints.ReadOnly constraints in diagram to prevent the user to edit the annotation by double click. Refer to the below mentioned documentation and sample.


Documentation

https://ej2.syncfusion.com/angular/documentation/diagram/constraints#annotation-constraints


Sample

https://stackblitz.com/edit/angular-pkxrgp-szkryo?file=app.component.html


Loader.
Up arrow icon