title: jQuery Mobile with touchmove event
body: <p>I'm trying to manage a <strong>Basic select switch</strong> like in the following documentation:</p>
  
  <p><a href="http://demos.jquerymobile.com/1.4.5/flipswitch/" rel="nofollow">http://demos.jquerymobile.com/1.4.5/flipswitch/</a></p>
  
  <p>My code is:</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>    &lt;div class="ui-flipswitch ui-shadow-inset ui-bar-inherit ui-corner-all ui-mini"&gt;
      &lt;a href="#" class="ui-flipswitch-on ui-btn ui-shadow ui-btn-inherit"&gt;On&lt;/a&gt;
      &lt;span class="ui-flipswitch-off"&gt;Off&lt;/span&gt;
      &lt;select data-role="flipswitch" data-mini="true" 
  name="login-memo-codice-inpt" id="login-memo-codice-inpt" class="ui-
  flipswitch-input" tabindex="-1" disabled=""&gt;
      &lt;option value="off"&gt;Off&lt;/option&gt;
      &lt;option value="on"&gt;On&lt;/option&gt;
      &lt;/select&gt;
      &lt;/div&gt; 
  </code></pre>
  
  <p><strong>JAVASCRIPT</strong></p>
  
  <pre><code>inputManager.my_slider=function(page){
      var enableTap=false;
      var executed=false;
      var flipswitch=page.find(".ui-flipswitch");
      flipswitch.on("touchstart",function(e){
          enableTap=true;
          executed=false;
      });
      flipswitch.on("tap",function(){
          if(executed){
              return false;
          }
      });     
      flipswitch.on("touchmove",function(e){
          if(enableTap){
              enableTap=false;
              $(this).trigger("click");
              executed=true;
          }           
      });
      flipswitch.on("touchend",function(e){
          enableTap=false;
      });                     
      page.find(".ui-flipswitch-input").prop("disabled",true);
      page.find(".ui-flipswitch-input").on("touchstart focus",function(event){
          event.preventDefault();             
          $(this).blur();
          return false;
      });
      if(libs.check_current_device().ieMobile){
          flipswitch.on("mousedown",function(e){
              $(this).trigger("click");
          });
      }
  };
  </code></pre>
  
  <p>It is works when I swipe on from left (ON) to right (OFF) or from right (OFF) to left (ON).</p>
  
  <p>My problems are:</p>
  
  <ol>
  <li>if I hold my finger on the ON and then I swipe to right (OFF) the
  status goes to OFF then come back to ON immediately;</li>
  <li>if I hold my finger on the OFF and then I swipe to left (ON) the status goes to ON then come back to OFF immediately. </li>
  </ol>
  
  <p>How to resolve this?</p>