title: jquery mobile swipe delay?
body: <p>I'm trying to implement a simple swipe for a mobile app in my internship. I first made an example before I implement it to my project. When I swipe to the left, I would be redirected to the next page. However, when I try to swipe to the right to go back to the previous page, it takes me about 4 tries to go back. </p>
  
  <p>index.html</p>
  
  <pre><code>      *{
          padding: 0;
          margin: 0;
      }
  
      div{
          max-width: 1024px;
          width: 100%;
          height: 768px;
          background: green;
      }
  
  
      &lt;div&gt;&lt;/div&gt;
  
       &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4 
  /jquery.min.js"&gt;&lt;/script&gt;
   &lt;script src="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5
  /jquery.mobile.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
      $("div").on("swipeleft",function(){
       window.location = "nextpage.html";
      });
  
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>nextpage.html</p>
  
  <pre><code>   *{
          padding: 0;
          margin: 0;
      }
  
       div{
          max-width: 1024px;
          width: 100%;
          height: 768px;
          background: blue;
      }
  
      &lt;div&gt;&lt;/div&gt;
  
       &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4 
  /jquery.min.js"&gt;&lt;/script&gt;
   &lt;script src="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5
  /jquery.mobile.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
      $("div").on("swiperight",function(){
       window.location = "index.html";
      });
  
      });
  
  &lt;/script&gt;
  </code></pre>