title: Page scrolls back to top when the menu panel is opened in jQuery Mobile
body: <p>I've checked the jQuery mobile API documents and GitHub Issues but I can't find the answer to my question.</p>
  
  <p>I've created a web app with the latest version of jQuery Mobile. The menu is a side panel that is opened when a link in the header is clicked. The header is fixed on top of the page.</p>
  
  <p>In Safari &amp; Chrome on iOS 7, when I scroll down the page and then open the side panel to get the menu, the page scrolls back to the top.</p>
  
  <p>Is there any way to have the panel open without having the page scroll back to the top?</p>
  
  <p>Thank you very much for your help!</p>
  
  <p>Here is the code I use :</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;meta name="apple-mobile-web-app-capable" content="yes" /&gt;
      &lt;meta name="apple-mobile-web-app-status-bar-style" content="black" /&gt;
      &lt;title&gt;Sentinelle&lt;/title&gt;
      &lt;link rel="shortcut icon" href="favicon.ico"&gt;
      &lt;link rel="stylesheet"  href="css/themes/default/jquery.mobile-1.4.0.min.css"&gt;
      &lt;link rel="stylesheet" href="_assets/css/jqm-demos.css"&gt;
      &lt;link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700"&gt;
      &lt;script src="js/jquery.js"&gt;&lt;/script&gt;
      &lt;script src="_assets/js/index.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery.mobile-1.4.0.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;(function(a,b,c){if(c in b&amp;&amp;b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&amp;&amp;(d.href.indexOf("http")||~d.href.indexOf(e.host))&amp;&amp;(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone")&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div data-role="page" class="jqm-demos jqm-home"&gt;
      &lt;div data-role="header" class="jqm-header"  data-position="fixed"&gt;
          &lt;h2&gt;&lt;img src="_assets/img/jquery-logo.png" alt="Logo"&gt;&lt;/h2&gt;
          &lt;a href="#" class="jqm-navmenu-link ui-btn ui-btn-icon-notext ui-corner-all ui-icon-bars ui-nodisc-icon ui-alt-icon ui-btn-left"&gt;Menu&lt;/a&gt;
      &lt;/div&gt;&lt;!-- /header --&gt;
  &lt;div data-role="panel" class="jqm-navmenu-panel" data-position="left" data-display="overlay" data-theme="a"&gt;
            &lt;ul class="jqm-list ui-alt-icon ui-nodisc-icon"&gt;
              &lt;li data-filtertext="accueil" data-icon="home"&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li data-filtertext="questionnaire" data-icon="bullets"&gt;&lt;a href="questionnaire.html" data-ajax="false"&gt;1&lt;/a&gt;&lt;/li&gt;
              &lt;li data-filtertext="historique" data-icon="clock"&gt;&lt;a href="historique.html" data-ajax="false"&gt;2&lt;/a&gt;&lt;/li&gt;
              &lt;li data-filtertext="rapport" data-icon="mail"&gt;&lt;a href="rapport.html" data-ajax="false"&gt;3&lt;/a&gt;&lt;/li&gt;
              &lt;li data-role="collapsible" data-collapsed-icon="carat-d" data-expanded-icon="carat-u" data-iconpos="right" data-inset="false"&gt;
                &lt;h3&gt;4&lt;/h3&gt;
                &lt;ul&gt;
                  &lt;li data-filtertext="about sentinel" data-icon="info"&gt;&lt;a href="about_sentinel.html" data-ajax="false"&gt;5a&lt;/a&gt;&lt;/li&gt;
                  &lt;li data-filtertext="about sentient" data-icon="info"&gt;&lt;a href="about_sentient.html" data-ajax="false"&gt;5b&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li data-filtertext="conditions" data-icon="alert"&gt;&lt;a href="conditions.html" data-ajax="false"&gt;6&lt;/a&gt;&lt;/li&gt;
              &lt;li data-filtertext="conditions" data-icon="edit"&gt;&lt;a href="mailto:contact@example.com" data-ajax="false"&gt;7&lt;/a&gt;&lt;/li&gt;
              &lt;li data-filtertext="conditions" data-icon="comment"&gt;&lt;a href="AppStore" data-ajax="false"&gt;8&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
          &lt;!-- /panel --&gt;
      &lt;div role="main" class="ui-content jqm-content"&gt;
          &lt;h1&gt;Lorem&lt;/h1&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;
          &lt;/div&gt;
      &lt;div data-role="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer"&gt;
          &lt;p&gt;Test&lt;/p&gt;
          &lt;p&gt;Under&lt;/p&gt;
      &lt;/div&gt;&lt;!-- /footer --&gt;
  &lt;/div&gt;&lt;!-- /page --&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>