/* jQuery grab https://github.com/jussi-kalliokoski/jQuery.grab Ported from Jin.js::gestures https://github.com/jussi-kalliokoski/jin.js/ Created by Jussi Kalliokoski Licensed under MIT License. Includes fix for IE */ (function($){ var extend = $.extend, mousedown = 'mousedown', mousemove = 'mousemove', mouseup = 'mouseup', touchstart = 'touchstart', touchmove = 'touchmove', touchend = 'touchend', touchcancel = 'touchcancel'; function unbind(elem, type, func){ if (type.substr(0,5) !== 'touch'){ // A temporary fix for IE8 data passing problem in Jin. return $(elem).unbind(type, func); } var fnc, i; for (i=0; i