stephband / jquery.event.swipe

jQuery custom events swipeleft, swiperight, swipeup and swipedown
stephband.info/jquery.event.swipe
446 stars 180 forks source link

to possible that change the settings. #12

Closed nazomikan closed 11 years ago

nazomikan commented 11 years ago

Hi :) I was possible to change the settings by using the eventData.

When it is omitted, The default value be set. I think you can change the percentage depending on the type of event is useful, but how about?

slides.on('swipeleft', {threshold: 0.8}, function (evt) {
  // ...
});
stephband commented 11 years ago

Hi. I have used this approach to events before. The problem is that when you want to pass actual data, you end up having to mix up the data with the options for the event plugin. Which leads to confusion. So I don't think this is a good feature.

You are of course free to maintain your branch of this, though!