Sha256: 251831292c204f9d853f170259d01980bcc094559fe4afda5e3f7a640e049aee
Contents?: true
Size: 692 Bytes
Versions: 19
Compression:
Stored size: 692 Bytes
Contents
;(function($){ $.extend($.fn, { freeze: function(opts) { var params = $.extend({ 'unfreeze': false }, opts); return this.each(function() { // This won't work in some versions of Android. // http://code.google.com/p/android/issues/detail?id=5491 // http://code.google.com/p/android/issues/detail?id=4549 var freeze = function(e){ e.preventDefault(); }; if (params.unfreeze) { $(this).off('touchmove', freeze); } else { $(this).on('touchmove', freeze); } }); } }); })(Zepto);
Version data entries
19 entries across 19 versions & 1 rubygems