/*!
 * jQuery Swipe - A jQuery plugin that adds swipe functionality to elements
 *
 * Copyright (c) 2015 Jonathan Baltazar
 *
 * Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php
 *
 * https://github.com/jonrules/jquery-swipe
 *
 * Version 1.0.0
 *
 */
(function($) {

	$.fn.swipe = function (onSwipe, minDx, minDy) {
		var minSwipeTime = 500;
		if (minDx == null) {
			minDx = 30;
		}
		if (minDy == null) {
			minDy = 30;
		}
		
		this.each(function () {
			var swipeX = 0;
			var swipeY = 0;
			var swipeTime = 0;

			$(this).bind('swipe', onSwipe);
			
			this.addEventListener('touchstart', function (evt) {
				evt.preventDefault();
				if (evt.touches.length > 0) {
					swipeX = evt.touches[0].pageX;
					swipeY = evt.touches[0].pageY;
				}
			}, false);
			
			this.addEventListener('touchend', function (evt) {
				evt.preventDefault();
				swipeX = 0;
				swipeY = 0;
			}, false);
			
			this.addEventListener('touchmove', function (evt) {
				evt.preventDefault();
				var now = new Date();
				if ((now - swipeTime) > minSwipeTime) {
					if (evt.touches.length > 0) {
						if (swipeX > 0 || swipeY > 0) {
							var dx = evt.touches[0].pageX - swipeX;
							var dy = evt.touches[0].pageY - swipeY;
							if (Math.abs(dx) > minDx || Math.abs(dy) > minDy) {
								$(this).trigger('swipe', [dx, dy]);
								swipeTime = now;
							}
						}
					}
				}
			}, false);
		
		});
		
		return this;
	};

}(jQuery));
@@ -797,43 +797,315 @@
 %0A%09%09%09
-%0A%09%09%09this.addEventListener('touchend
+this.addEventListener('mousedown', function (evt) %7B%0A%09%09%09%09evt.preventDefault();%0A%09%09%09%09swipeX = evt.screenX;%0A%09%09%09%09swipeY = evt.screenY;%0A%09%09%09%7D, false);%0A%09%09%09%0A%09%09%09this.addEventListener('touchend', function (evt) %7B%0A%09%09%09%09evt.preventDefault();%0A%09%09%09%09swipeX = 0;%0A%09%09%09%09swipeY = 0;%0A%09%09%09%7D, false);%0A%09%09%09this.addEventListener('mouseup
 ', f
@@ -1686,16 +1686,438 @@
 false);%0A
+%09%09%09this.addEventListener('mousemove', function (evt) %7B%0A%09%09%09%09evt.preventDefault();%0A%09%09%09%09var now = new Date();%0A%09%09%09%09if ((now - swipeTime) %3E minSwipeTime) %7B%0A%09%09%09%09%09if (swipeX %3E 0 %7C%7C swipeY %3E 0) %7B%0A%09%09%09%09%09%09var dx = evt.screenX - swipeX;%0A%09%09%09%09%09%09var dy = evt.screenY - swipeY;%0A%09%09%09%09%09%09if (Math.abs(dx) %3E minDx %7C%7C Math.abs(dy) %3E minDy) %7B%0A%09%09%09%09%09%09%09$(this).trigger('swipe', %5Bdx, dy%5D);%0A%09%09%09%09%09%09%09swipeTime = now;%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D, false);%0A
 %09%09%0A%09%09%7D);
@@ -2151,8 +2151,9 @@
 Query));
+%0A

add mouse events