I've updated the plugin to pass the repeat counter in to the given function,
so anyone using the mousehold plugin could do something like:

$('img.spinner').mousehold(100, function(i) {
  speed = Math.pow(100, i);
  doMyStuff(speed);
}

Thanks for all the feedback.


Jörn Zaefferer wrote:
> 
> Webunity | Gilles van den Hoven schrieb:
>> Andy Matthews wrote:
>>   
>>> This would be a perfect thing to meld in with that form scroller plugin.
>>> Can't recall who wrote it, but it converted a form field into a widget
>>> that
>>> let you click up and down to change values.
>>>   
>>>     
>> And is there a feature which counts how many events are fired?
>> I am thinking of an implementation where you first get increments of 1, 
>> then 2, then 4, then 8 (the longer you hold your mouse down)
>>   
> That's a great idea that could improve this nice plugin even more.
> 
> I added it to the plugins page, please review the description: 
> http://jquery.com/docs/Plugins/ (at the bottom)
> 
> -- 
> Jörn Zaefferer
> 
> http://bassistance.de
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Plugin%3A-Mousehold-tf2828870.html#a7906343
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to