Sha256: 26de131d1524fe39b48100eed5c35d97d0a1b719d13525cf2748a293904dcbb6

Contents?: true

Size: 826 Bytes

Versions: 8

Compression:

Stored size: 826 Bytes

Contents

(function(b){var e=function(c,a){var b=c.data("mousepresstimer");b&&clearTimeout(b);a&&c.unbind("mouseup.mousepressext mouseleave.mousepressext")};b.event.special.mousepress={setup:function(){b(this).bind("mousedown.mousepressext",function(c){var a=b(this),g=function(f){var d=0;e(a);a.data("mousepresstimer",setInterval(function(){b.event.special.mousepress.handler(a[0],c);d++;3<d&&45<f&&g(f-40)},f))},d=b(c.target).trigger("mousepressstart",[c]);e(a);a.data("mousepresstimer",setTimeout(function(){g(180)},
200));a.bind("mouseup.mousepressext mouseleave.mousepressext",function(b){e(a,!0);d.trigger("mousepressend",[b]);d=a=null})})},teardown:function(){e(b(this).unbind(".mousepressext"),!0)},handler:function(c,a){return b.event.handle.call(c,{type:"mousepress",target:a.target,pageX:a.pageX,pageY:a.pageY})}}})(jQuery);

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
webshims-rails-0.4.4 vendor/assets/javascripts/webshims/minified/extras/mousepress.js
webshims-rails-0.4.3 vendor/assets/javascripts/webshims/minified/extras/mousepress.js
webshims-rails-0.4.2 vendor/assets/javascripts/webshims/minified/extras/mousepress.js
webshims-rails-0.4.1 vendor/assets/javascripts/webshims/minified/extras/mousepress.js
webshims-rails-0.4 vendor/assets/javascripts/webshims/minified/extras/mousepress.js
webshims-rails-0.3 vendor/assets/javascripts/webshims/minified/extras/mousepress.js
webshims-rails-0.2 vendor/assets/javascripts/webshims/minified/extras/mousepress.js
webshims-rails-0.1 vendor/assets/javascripts/webshims/minified/extras/mousepress.js