title: mouse wheel to be use for swipe
body: <p>i have a function which works for mouse wheel and i want to use the same function for swipe. </p>
  
  <pre><code>// Mouse Wheel support 
  this.MouseWheel =
  {   
      init: function()
      {
          // Init mouse wheel listener 
          if(window.addEventListener)
          {
              my.ImageFlowDiv.addEventListener('DOMMouseScroll', my.MouseWheel.get, false);
          }
          my.Helper.addEvent(my.ImageFlowDiv,'mousewheel',my.MouseWheel.get);
      },
  
      get: function(event)
      {
          var delta = 0;
          if (!event)
          {
              event = window.event;
          }
          if (event.wheelDelta)
          {
              delta = event.wheelDelta / 120;
          }
          else if (event.detail)
          {
              delta = -event.detail / 3;
          }
          if (delta)
          {
              my.MouseWheel.handle(delta);
          }
          my.Helper.suppressBrowserDefault(event);
      },
  
      handle: function(delta)
      {
      alert('handle called');
          var change = false;
          var newImageID = 0;
          if(delta &gt; 0)
          {
              if(my.imageID &gt;= 1)
              {
                  newImageID = my.imageID -3;
                  change = true;
              }
          }
          else
          {
              if(my.imageID &lt; (my.max-1))
              {
                  newImageID = my.imageID +4;
                  change = true;
              }
          }
  
          /* Glide to next (mouse wheel down) / previous (mouse wheel up) image  */
          if(change)
          {
          //alert('new image id='+newImageID);
              my.glideOnEvent(newImageID);
          }
      }
  };
  </code></pre>
  
  <p>Earlier i used the <code>touchswipe</code> plugin and it was working fine but i want to use another plugin as <code>touchswipe</code> is disturbing touch support.</p>
  
  <pre><code>$("#imageFlow").swipe({
    swipe:function(event, direction, distance, duration, fingerCount) {
      alert('swipe called');
      if(direction == 'left') {
        my.MouseWheel.handle(-1);
      } else if (direction == 'right') {
        my.MouseWheel.handle(1);
      }       
    }
  });
  </code></pre>