Skip to content
/ Longclick Public

Press & hold mouse/touch "long click" special event for jQuery 1.4

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
GPL-LICENSE.txt
MIT
MIT-LICENSE.txt
Notifications You must be signed in to change notification settings

pisi/Longclick

Repository files navigation

jQuery Longclick Event

*Press & hold mouse/touch "long click" special event for jQuery 1.4.x

Method:

.longclick( [ duration ], handler ) to subscribe to event

.longclick() to trigger the event

  • This method is a shortcut for .bind("longclick", handler) in the first variation and .trigger("longclick") in the second.
  • If supplied, custom duration (in milliseconds) is used for target element(s).
  • Returns jQuery.

Event:

"longclick"

Configuration:

  • jQuery.longclick.duration - for how long mouse button must be pressed down (or touched) stationery for the event to fire. Defaults to 500 (milliseconds).

Fair warning:

Under intensive development. v0.x works just fine, but is very "fluid" API-wise. Till v1.0.

Requirements:

License:

Free for use in all personal or commercial projects under both MIT and GPL licenses.


Copyright (c) 2010 Petr Vostřel » Check out my other jQuery plugin Reel for 360° image projection

About

Press & hold mouse/touch "long click" special event for jQuery 1.4

Resources

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
GPL-LICENSE.txt
MIT
MIT-LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published