<?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 How to extent click buffer when using view.on(&amp;quot;click&amp;quot;, function(event){) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-extent-click-buffer-when-using-view-on-quot/m-p/1083998#M74068</link>
    <description>&lt;LI-CODE lang="c"&gt;view.on("click", function(event){
view.hitTest(event.screenPoint)
.then(function(response){
if (response.results.length &amp;gt; 0) {
&amp;lt;code&amp;gt;
}
}
});​&lt;/LI-CODE&gt;&lt;P&gt;This piece of code fires when I touch the view.&lt;/P&gt;&lt;P&gt;When the view is zoomed in to a very 'deep' level, sometimes a touch on the screen does not give a hit on the graphic. The user has clicked a little to much to the side or above/under the graphic. Is there a way to expand the 'hit buffer', the area around the graphic where this routine fires?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jul 2021 15:06:38 GMT</pubDate>
    <dc:creator>PHerk</dc:creator>
    <dc:date>2021-07-29T15:06:38Z</dc:date>
    <item>
      <title>How to extent click buffer when using view.on("click", function(event){)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-extent-click-buffer-when-using-view-on-quot/m-p/1083998#M74068</link>
      <description>&lt;LI-CODE lang="c"&gt;view.on("click", function(event){
view.hitTest(event.screenPoint)
.then(function(response){
if (response.results.length &amp;gt; 0) {
&amp;lt;code&amp;gt;
}
}
});​&lt;/LI-CODE&gt;&lt;P&gt;This piece of code fires when I touch the view.&lt;/P&gt;&lt;P&gt;When the view is zoomed in to a very 'deep' level, sometimes a touch on the screen does not give a hit on the graphic. The user has clicked a little to much to the side or above/under the graphic. Is there a way to expand the 'hit buffer', the area around the graphic where this routine fires?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 15:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-extent-click-buffer-when-using-view-on-quot/m-p/1083998#M74068</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2021-07-29T15:06:38Z</dc:date>
    </item>
  </channel>
</rss>

