Closed gopi15699sptr closed 1 month ago
The click is triggered because you click on the node to swipe. Please explain what you need to achieve. You want to avoid moving the chart on click?
Actually , I want to trigger a event to show customized edit form on click , but when I swipe on top of the card also edit form get triggered , thats the issue
But we use the same option for edit and pan. So you can use pan or edit. To open edit, you can use double click: https://code.balkan.app/org-chart-js/open-details-on-double-click#JS
Is this is only option to resolve my issue ?
I will check and let you know.
We have created a code demo for you: https://code.balkan.app/org-chart-js/pan-and-click#JS
Yes great! , its working , but one more scenario missed which is on click on node Tree menu also event gets triggered , we dont want that , only want to get event trigger on node click
The event onNodeClick is not triggered on nodeTreeMenu button click. Did you mean something else?
No , When I click on Node event is getting triggered, above mentioned issue resolved , But another issue came for when I nodeTreeMenu that time also node event getting triggered, I dont want that
How can I reproduce the issue in the below code example? https://code.balkan.app/family-tree-js/pan-and-click#JS
No this issue resolved
I am using swipe on top of the card using -
nodeMouseClick: FamilyTree.action.pan,
alsofamily.onNodeClick((args) => { console.log("onClick",args) });
In this above mentioned event getting triggered onnodeClick and also swipe top of the card . I want to trigger only on node click