I am using 4.26 of the Javascript API in an Angular 15 application. The "click" event is working fine, however the on "double-click" fires the click function. I am trying to implement a function whereby the user can move the single graphic to the double click point upon the event as opposed to click in order to move the background.
I have tried using "immediate-click" and "immediate-double-click" to no affect. I have also tried removing the async aspect.
Update: In order to eliminate the version and Angular I created a stand-alone 4.30 version. No change...
The MapView documentation clearly lists the double-click as an available function
this.view.on("double-click", async (e) => {
console.log('Double click:', e);
});
this.view.on("click", async (e) => {
console.log('click:', e);
})
Please help.
I made progress toward a solution by having the div in the Angular app respond to the double click. There is a chance, though that the click event will fire first and not know it was a double click event.
I am disappointed to get so many views and no response. The documentation clearly states that the double-click is supported, yet it does not work.