<?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: Disable onClick Event when Panning the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-onclick-event-when-panning-the-map/m-p/732769#M67894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A little hard to respond without knowing more about what you're doing with your OnClick event so I'll blindly offer a couple (untested) suggestions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Would it be too awkard to switch your onClick code over to a onDblClick event? That way you avoid the conflicting situation entirely.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Perhaps you could add a conditional statement within your onClick event handler and check if map.OnPan has values. If it does, the map is panning so you know that&amp;nbsp; you shouldn't perform your onClick code.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2013 22:10:46 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2013-04-08T22:10:46Z</dc:date>
    <item>
      <title>Disable onClick Event when Panning the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-onclick-event-when-panning-the-map/m-p/732768#M67893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a custom onClick event handler for my map.&amp;nbsp; I'm finding that the handler is called when I click on the map to pan.&amp;nbsp; Is there a way to disable the onClick event if the map is panning?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 21:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-onclick-event-when-panning-the-map/m-p/732768#M67893</guid>
      <dc:creator>BrianBeck</dc:creator>
      <dc:date>2013-04-08T21:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Disable onClick Event when Panning the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-onclick-event-when-panning-the-map/m-p/732769#M67894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A little hard to respond without knowing more about what you're doing with your OnClick event so I'll blindly offer a couple (untested) suggestions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Would it be too awkard to switch your onClick code over to a onDblClick event? That way you avoid the conflicting situation entirely.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Perhaps you could add a conditional statement within your onClick event handler and check if map.OnPan has values. If it does, the map is panning so you know that&amp;nbsp; you shouldn't perform your onClick code.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 22:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-onclick-event-when-panning-the-map/m-p/732769#M67894</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-04-08T22:10:46Z</dc:date>
    </item>
  </channel>
</rss>

