What was changed (compared to the original v0.1.2):
- Don’t modify the default settings internally.
- Merge the options recursively (deep copy) so that the custom threshold values actually get used.
- Allow overriding the options globally through
$.fn.swipe.options
. - Use namespaced jQuery events (using the
swipe
namespace) instead of DOM2addEventListener
to prevent errors in old IEs. - Simplified and optimized code.
- Changed
swipeLeft
andswipeRight
functions to be called within the context of the bound element. Thanks, @kswedberg!