<?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: Whole page scrolls when panning on map on mobile in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703396#M65458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response!&amp;nbsp; That worked, it wasn't inside an iframe, but your answer put us on the right track. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 19:32:33 GMT</pubDate>
    <dc:creator>JustinGreco</dc:creator>
    <dc:date>2016-05-13T19:32:33Z</dc:date>
    <item>
      <title>Whole page scrolls when panning on map on mobile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703391#M65453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When panning on a map while on a mobile device, the entire page scrolls, making the app very difficult to use.&amp;nbsp; Is there some CSS that can be applied to get around this issue?&amp;nbsp; This only occurs on touch devices, it does not happen when using a track pad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 14:32:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703391#M65453</guid>
      <dc:creator>JustinGreco</dc:creator>
      <dc:date>2016-05-11T14:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Whole page scrolls when panning on map on mobile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703392#M65454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Justin,&lt;/P&gt;&lt;P&gt;can you provide a code sample that demos your issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 00:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703392#M65454</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-13T00:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Whole page scrolls when panning on map on mobile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703393#M65455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;It happens on any of the Esri samples as well:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/get-started-mapview/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/get-started-mapview/index.html"&gt;Get started with MapView - Create a 2D map | ArcGIS API for JavaScript 4.0&lt;/A&gt; &lt;/P&gt;&lt;P&gt;If you look at it on a phone (we were using iPhones) the map will pan, but then the rest of the page scrolls as well.&amp;nbsp; We haven't looked too much into it, though I'd check here first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were looking at what it would take to move an app we are releasing next week to 4.0, but that was a bit of a deal breaker since it needs to work on mobile devices as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 01:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703393#M65455</guid>
      <dc:creator>JustinGreco</dc:creator>
      <dc:date>2016-05-13T01:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Whole page scrolls when panning on map on mobile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703394#M65456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Justin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There is a easy fix for this if you are embedding the map in an iframe like the link you provided is. In the html document that has the map add these lines to the script tag:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;window.addEventListener('touchmove', function(event) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Prevent scrolling on this element
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event.preventDefault();
&amp;nbsp;&amp;nbsp;&amp;nbsp; }, false);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703394#M65456</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T05:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Whole page scrolls when panning on map on mobile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703395#M65457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works by replacing window for document.getElementById('map') if it's not in an iframe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 19:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703395#M65457</guid>
      <dc:creator>DavidMeza</dc:creator>
      <dc:date>2016-05-13T19:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Whole page scrolls when panning on map on mobile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703396#M65458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response!&amp;nbsp; That worked, it wasn't inside an iframe, but your answer put us on the right track. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 19:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whole-page-scrolls-when-panning-on-map-on-mobile/m-p/703396#M65458</guid>
      <dc:creator>JustinGreco</dc:creator>
      <dc:date>2016-05-13T19:32:33Z</dc:date>
    </item>
  </channel>
</rss>

