I'm looking to add my own event handler for the mapView's double-click event. How do I go about disabling the default mapView's double-click event handler or any other default event handler like click.
Antonio,
Just use the evt.stopPropagation();
view.on("double-click", function(evt) { evt.stopPropagation(); console.info(evt); });<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Thanks. That worked
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.