This is probably a corner case that isn't worth dealing with, but
while I was holding one of the arrows, I accidentally bumped the right
mouse button, which brought up the right-click menu. "Whoops," I
thought to myself, and clicked off in the white space of the page to
get rid of it. When I looked back at the textfield, it was still
spinning away, and no amount of clicking on either arrow would get it
to stop.

I assume clicking again fired another 'hold' event, but you might want
to make it so all hold events for a particular element are cleared on
mouseup/mouseout. Maybe at the beginning of mousedown, check to see if
interval is already running and clear it if it is? Or maybe it's not
worth messing with.

Nice plugin :)

--Erik

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.
>
> Cheers,
>
> Remy Sharp.
> --
> View this message in context: 
> http://www.nabble.com/Plugin%3A-Mousehold-tf2828870.html#a7897334
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

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

Reply via email to