On Dec 15, 2006, at 3:14 PM, 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.
>
>

Yeah, it would also work great with that menu demo someone showed  
with the iPod-like interface. Remember someone mentioned that  
clicking repeatedly was giving him carpal tunnel syndrome? It was the  
one that had as one of its results the guy wearing the fruity pants.  
I can't track it down in my previous emails, but I'd like to find it  
again. Does anyone recall who did this or where it is?

--Karl
_______________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com





>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of John Resig
> Sent: Friday, December 15, 2006 1:54 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Plugin: Mousehold
>
>
> This is a fantastic plugin!
>
> The only suggestion that I have is to reverse the order of the  
> arguments:
> $(...).mousehold( 100, function(){ ... } );
>
> and make the timeout argument optional. That way you can still write:
> $(...).mousehold( function(){ ... } );
>
> This makes it more consistent with the style of other jQuery methods
> (having the callback always be last!)
>
> Also, it may make sense to have the default timeout be something like
> '100' - as a timeout of 1 second seems to be kind of useless (IMO).
>
> --John
>
> On 12/15/06, Remy Sharp <[EMAIL PROTECTED]> wrote:
>>
>> I've written a simple plugin that keeps firing the specified function
> while
>> the mouse button is held down (i.e. a repeat action).
>>
>> Here it is:
>>
>> http://leftlogic.com/jquery/mousehold.js
>>
>> Here's a bit more detail on how it works - along with an example:
>>
>> http://remysharp.com/2006/12/15/jquery-mousehold-event/
>>
>> Any feedback or bugs please let me know.


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

Reply via email to