<?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 Double Click Zoom moves the map while using the map in an absolute positioned div in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/double-click-zoom-moves-the-map-while-using-the/m-p/1054529#M72899</link>
    <description>&lt;P&gt;On one of our pages, we need to show the map in a certain location, whose parent tags has -at least- the css property position: absolute. So we have a html structure similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;div style="position: absolute; right: 0"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;div style="posisiton: fixed; top: 0"&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div id="map"&amp;gt;&amp;nbsp; &amp;nbsp;// This is where our map is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in this case, a double click (or pinch-to-zoom on mobile) does not work nicely since the map content also moves somewhere else while zooming, so we lose our position in the map. (Although the zoom In/Out buttons on the map works fine and they never lose the orientation)&lt;/P&gt;&lt;P&gt;When i move our map's div (which itself does not have any additional css) to another location, which does not have any absolute or fixed positioning, everything works well.&lt;/P&gt;&lt;P&gt;Currently as a quick fix, we had to completely disable the double click function with disableDoubleClickZoom.&lt;/P&gt;&lt;P&gt;Do you have any idea how we can fix this problem?&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 05:20:28 GMT</pubDate>
    <dc:creator>ThomasMannheim</dc:creator>
    <dc:date>2021-05-05T05:20:28Z</dc:date>
    <item>
      <title>Double Click Zoom moves the map while using the map in an absolute positioned div</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/double-click-zoom-moves-the-map-while-using-the/m-p/1054529#M72899</link>
      <description>&lt;P&gt;On one of our pages, we need to show the map in a certain location, whose parent tags has -at least- the css property position: absolute. So we have a html structure similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;div style="position: absolute; right: 0"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;div style="posisiton: fixed; top: 0"&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div id="map"&amp;gt;&amp;nbsp; &amp;nbsp;// This is where our map is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in this case, a double click (or pinch-to-zoom on mobile) does not work nicely since the map content also moves somewhere else while zooming, so we lose our position in the map. (Although the zoom In/Out buttons on the map works fine and they never lose the orientation)&lt;/P&gt;&lt;P&gt;When i move our map's div (which itself does not have any additional css) to another location, which does not have any absolute or fixed positioning, everything works well.&lt;/P&gt;&lt;P&gt;Currently as a quick fix, we had to completely disable the double click function with disableDoubleClickZoom.&lt;/P&gt;&lt;P&gt;Do you have any idea how we can fix this problem?&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 05:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/double-click-zoom-moves-the-map-while-using-the/m-p/1054529#M72899</guid>
      <dc:creator>ThomasMannheim</dc:creator>
      <dc:date>2021-05-05T05:20:28Z</dc:date>
    </item>
  </channel>
</rss>

