<?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: Right click to pan map mid draw (hybrid mode) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/right-click-to-pan-map-mid-draw-hybrid-mode/m-p/1576489#M86393</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/867013"&gt;@PaulStanway1&lt;/a&gt;&amp;nbsp;, is there a reason the arrow keys on the keyboard cannot be used for panning the map mid-drawing?&amp;nbsp; Does it need to be a right click?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2025 17:19:03 GMT</pubDate>
    <dc:creator>Sage_Wall</dc:creator>
    <dc:date>2025-01-16T17:19:03Z</dc:date>
    <item>
      <title>Right click to pan map mid draw (hybrid mode)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/right-click-to-pan-map-mid-draw-hybrid-mode/m-p/1576331#M86389</link>
      <description>&lt;P&gt;Scenario: User is drawing a polygon using hybrid mode, has kept left click down to draw freehand then releases the left click, ready for next vertex click but wants to pan the map before doing so.&lt;/P&gt;&lt;P&gt;At this point mid draw, the user needs to be able to right click, keep right button down, and move mouse around (drag) to pan the map then continue to freehand draw or point click, is this possible?&lt;/P&gt;&lt;P&gt;Example hybrid mode drawing here &amp;gt;&amp;nbsp;&lt;A href="https://codepen.io/Paul-Stanway/pen/xbKpExL" target="_blank" rel="noopener"&gt;https://codepen.io/Paul-Stanway/pen/xbKpExL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can someone provide updates to the above codepen to achieve this pan mid draw using right click hold.&lt;/P&gt;&lt;P&gt;I found an example using non hybrid vertex drawing below link, using left click hold to pan but left click cannot be achieved with hybrid as left click hold draws multiple vertex as mouse is moved so need to use right click hold somehow. &amp;gt;&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/oNVGzqX?editors=1000" target="_self"&gt;https://codepen.io/U_B_U/pen/oNVGzqX?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 12:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/right-click-to-pan-map-mid-draw-hybrid-mode/m-p/1576331#M86389</guid>
      <dc:creator>PaulStanway1</dc:creator>
      <dc:date>2025-01-16T12:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Right click to pan map mid draw (hybrid mode)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/right-click-to-pan-map-mid-draw-hybrid-mode/m-p/1576489#M86393</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/867013"&gt;@PaulStanway1&lt;/a&gt;&amp;nbsp;, is there a reason the arrow keys on the keyboard cannot be used for panning the map mid-drawing?&amp;nbsp; Does it need to be a right click?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 17:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/right-click-to-pan-map-mid-draw-hybrid-mode/m-p/1576489#M86393</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-01-16T17:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Right click to pan map mid draw (hybrid mode)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/right-click-to-pan-map-mid-draw-hybrid-mode/m-p/1576635#M86396</link>
      <description>&lt;P&gt;Hi, thanks for the reply, yes the mouse and right click need to be used not the keyboard arrow keys&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 22:23:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/right-click-to-pan-map-mid-draw-hybrid-mode/m-p/1576635#M86396</guid>
      <dc:creator>PaulStanway1</dc:creator>
      <dc:date>2025-01-16T22:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Right click to pan map mid draw (hybrid mode)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/right-click-to-pan-map-mid-draw-hybrid-mode/m-p/1576822#M86399</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/867013"&gt;@PaulStanway1&lt;/a&gt;&amp;nbsp;I'm not really sure how to do this either at least without tying to figure it out myself. Hopefully someone else more familiar with the sketch view model can help.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 16:05:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/right-click-to-pan-map-mid-draw-hybrid-mode/m-p/1576822#M86399</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-01-17T16:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Right click to pan map mid draw (hybrid mode)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/right-click-to-pan-map-mid-draw-hybrid-mode/m-p/1576957#M86400</link>
      <description>&lt;P&gt;This isn't perfect, but does mostly work.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/jENpyGy?editors=0010" target="_blank"&gt;https://codepen.io/odoe/pen/jENpyGy?editors=0010&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  let handle;
  view.on("pointer-down", (e) =&amp;gt; {
    // right-click
    if (e.native.which === 3) {
      // drag
      handle = view.on(
        "pointer-move",
        debounce((event) =&amp;gt; {
          const mp = view.toMap(event);
          view.goTo(mp);
          // mouse up from drag
          let handle2 = view.on("pointer-up", () =&amp;gt; {
            handle.remove();
            handle2.remove();
          });
        })
      );
    }
  });&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 17 Jan 2025 21:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/right-click-to-pan-map-mid-draw-hybrid-mode/m-p/1576957#M86400</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-01-17T21:38:15Z</dc:date>
    </item>
  </channel>
</rss>

