Select to view content in your preferred language

ArcGIS Javascript 4.26 double-click issue

50
0
4 hours ago
GerardLanphear
New Contributor

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.

0 Kudos
0 Replies