<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Android Click, Dbl-Click Firing Extra Clicks in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522901#M48745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I updated the code on &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/esri-leaflet/issues/233" rel="nofollow"&gt;https://github.com/Esri/esri-leaflet/issues/233&lt;/A&gt;&lt;SPAN&gt; it looks like the only way to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following is from the jQuery docs for double click &lt;/SPAN&gt;&lt;A href="http://api.jquery.com/dblclick/" rel="nofollow"&gt;http://api.jquery.com/dblclick/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#A9A9A9&amp;quot;;"&gt;It is inadvisable to bind handlers to both the click and dblclick events for the same element. The sequence of events triggered varies from browser to browser, with some receiving two click events before the dblclick and others only one. Double-click sensitivity (maximum time between clicks that is detected as a double click) can vary by operating system and browser, and is often user-configurable.&lt;/SPAN&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an alternative why not bind the identify to the &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;contextmenu&lt;/PRE&gt;&lt;SPAN&gt; event on Leaflet? which is fired on right click (desktop) or long press (mobile)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 23:37:03 GMT</pubDate>
    <dc:creator>PatrickArlt1</dc:creator>
    <dc:date>2014-04-07T23:37:03Z</dc:date>
    <item>
      <title>Android Click, Dbl-Click Firing Extra Clicks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522895#M48739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nexus 5 &amp;amp; HTC One [4.4.2], Chrome [33.0.1750.170]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using esri 3.8compact, on android phones noted, click fires click-click, dbl-click fires click-click-dbl-click&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.portlandmaps.com/arcmaps/fix/esri.click.htm"&gt;http://www.portlandmaps.com/arcmaps/fix/esri.click.htm&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.portlandmaps.com/arcmaps/fix/esri.click.fixed.htm"&gt;http://www.portlandmaps.com/arcmaps/fix/esri.click.fixed.htm&lt;/A&gt;&lt;SPAN&gt; (fix with e.stopImmediatePropagation())&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.portlandmaps.com/arcmaps/fix/esri.dbl-click.htm"&gt;http://www.portlandmaps.com/arcmaps/fix/esri.dbl-click.htm&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.portlandmaps.com/arcmaps/fix/esri.dbl-click.fixed.htm"&gt;http://www.portlandmaps.com/arcmaps/fix/esri.dbl-click.fixed.htm&lt;/A&gt;&lt;SPAN&gt; (fix with set|clearTimeout)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using leaflet 0.8dev/esri-leaflet 0.0.1-beta.4, click is fine, however, &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;any browser&lt;/SPAN&gt;&lt;SPAN&gt; dbl-click fires click-dbl-click or click-click-dbl-click depending on browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.portlandmaps.com/arcmaps/fix/leaflet.dbl-click.htm"&gt;http://www.portlandmaps.com/arcmaps/fix/leaflet.dbl-click.htm&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.portlandmaps.com/arcmaps/fix/leaflet.dbl-click.fixed.htm"&gt;http://www.portlandmaps.com/arcmaps/fix/leaflet.dbl-click.fixed.htm&lt;/A&gt;&lt;SPAN&gt; (fix with set|clearTimeout)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry examples aren't fiddles.&amp;nbsp; dbl-click in desktop site confuses the situation by zooming page.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please fixie, thankie &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 21:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522895#M48739</guid>
      <dc:creator>deleted-user-RAnWn8DDSd1P</dc:creator>
      <dc:date>2014-04-03T21:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Android Click, Dbl-Click Firing Extra Clicks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522896#M48740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Should be mentioned that e.stopPropagation(), e.preventDefault() and return false all don't work to suppress the extra single click on android.&amp;nbsp; I've always trusted the latter to do the same as the two former.&amp;nbsp; Only e.stopImmediatePropagation() works for this.&amp;nbsp; Had to wrap the two former in try to suppress illegal invocation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 14:14:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522896#M48740</guid>
      <dc:creator>deleted-user-RAnWn8DDSd1P</dc:creator>
      <dc:date>2014-04-04T14:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Android Click, Dbl-Click Firing Extra Clicks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522897#M48741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Leaflet is actually handling this weird and buggy behavior for you you can look at their code here. &lt;/SPAN&gt;&lt;A href="https://github.com/Leaflet/Leaflet/blob/v0.7.2/src/dom/DomEvent.js#L217-L234"&gt;https://github.com/Leaflet/Leaflet/blob/v0.7.2/src/dom/DomEvent.js#L217-L234&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could probably take a similar approach with the JS API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 01:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522897#M48741</guid>
      <dc:creator>PatrickArlt1</dc:creator>
      <dc:date>2014-04-05T01:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Android Click, Dbl-Click Firing Extra Clicks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522898#M48742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this handles the extra single-click in leaflet nicely, however, the double-click firing single-click(s) as well was said to be &lt;/SPAN&gt;&lt;A href="https://github.com/Leaflet/Leaflet/issues/2611"&gt;&lt;SPAN style="text-decoration:underline;"&gt;by design&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; which I understand is done to not delay any single-click but, given the absence of a delayedclick event to latch onto that only fires when double-click does not, it becomes difficult to support an app which needs double-click zoom and single-click identify and only one happening at any one time.&amp;nbsp; i feel the hacky set|clearTimeout deal will come back to bite me at some point.&amp;nbsp; i think it would be preferrable for the js api to make double-click fire no extra single-clicks or have an extra delayedclick event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 13:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522898#M48742</guid>
      <dc:creator>deleted-user-RAnWn8DDSd1P</dc:creator>
      <dc:date>2014-04-07T13:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Android Click, Dbl-Click Firing Extra Clicks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522899#M48743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since this behavior is specific to how you want your app to work and how to make identify calls I don't think its the responsibility of Esri Leaflet to handle this for you. Especially since it would involve modifying Leaflets default behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have posted a solution for a click-to-identify/double-click-to-zoom experience in this GitHub issue &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/esri-leaflet/issues/233"&gt;https://github.com/Esri/esri-leaflet/issues/233&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will however look into integrating this into &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/esri-leaflet/issues/28"&gt;https://github.com/Esri/esri-leaflet/issues/28&lt;/A&gt;&lt;SPAN&gt; when I do popup helpers for dynamic map layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522899#M48743</guid>
      <dc:creator>PatrickArlt1</dc:creator>
      <dc:date>2014-04-07T15:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Android Click, Dbl-Click Firing Extra Clicks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522900#M48744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this does not work for me.&amp;nbsp; you can see the popup on the first click and then it disappears if it was a double-click, because a dblclick is firing click-dblclick.&amp;nbsp; not sure why it disappears. maybe because leaflet hides popups on zoom. but the point is if you see a popup at all when double-clicking you've fired a click as well, after the bailout param check.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.portlandmaps.com/arcmaps/fix/leaflet.dbl-click2.htm"&gt;http://www.portlandmaps.com/arcmaps/fix/leaflet.dbl-click2.htm&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; using chrome 33.0.1750.154 m&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 16:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522900#M48744</guid>
      <dc:creator>deleted-user-RAnWn8DDSd1P</dc:creator>
      <dc:date>2014-04-07T16:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Android Click, Dbl-Click Firing Extra Clicks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522901#M48745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I updated the code on &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/esri-leaflet/issues/233" rel="nofollow"&gt;https://github.com/Esri/esri-leaflet/issues/233&lt;/A&gt;&lt;SPAN&gt; it looks like the only way to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following is from the jQuery docs for double click &lt;/SPAN&gt;&lt;A href="http://api.jquery.com/dblclick/" rel="nofollow"&gt;http://api.jquery.com/dblclick/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#A9A9A9&amp;quot;;"&gt;It is inadvisable to bind handlers to both the click and dblclick events for the same element. The sequence of events triggered varies from browser to browser, with some receiving two click events before the dblclick and others only one. Double-click sensitivity (maximum time between clicks that is detected as a double click) can vary by operating system and browser, and is often user-configurable.&lt;/SPAN&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an alternative why not bind the identify to the &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;contextmenu&lt;/PRE&gt;&lt;SPAN&gt; event on Leaflet? which is fired on right click (desktop) or long press (mobile)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 23:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522901#M48745</guid>
      <dc:creator>PatrickArlt1</dc:creator>
      <dc:date>2014-04-07T23:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Android Click, Dbl-Click Firing Extra Clicks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522902#M48746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i don't think that was written with maps in mind.&amp;nbsp; i consider it the most intuitive for the user in any mapping app on any platform to expect a double-click|tap zoom and a single-click|tap identify.&amp;nbsp; i know jquery has written that because they've probably seen wide variance in length between clicks that produce a double; a variance that will likely break my original 300ms solution at some point.&amp;nbsp; shouldn't be too hard to vary the ms by user agent in that case.&amp;nbsp; i'd much rather live with setTimeout than having to educate users on unexpected behavior.&amp;nbsp; thanks for confirming problem and workaround.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 13:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/android-click-dbl-click-firing-extra-clicks/m-p/522902#M48746</guid>
      <dc:creator>deleted-user-RAnWn8DDSd1P</dc:creator>
      <dc:date>2014-04-08T13:19:36Z</dc:date>
    </item>
  </channel>
</rss>

