https://github.com/pizzapanther/jquery-mouse-click
Adds ability to attach right click and middle click events.
https://github.com/pizzapanther/jquery-mouse-click
Last synced: 9 months ago
JSON representation
Adds ability to attach right click and middle click events.
- Host: GitHub
- URL: https://github.com/pizzapanther/jquery-mouse-click
- Owner: pizzapanther
- Created: 2012-01-09T04:20:26.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-09T04:31:16.000Z (almost 14 years ago)
- Last Synced: 2023-04-10T20:01:43.502Z (over 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
jQuery Mouse-Click Plugin
Version 1.0
By Paul Bailey
http://neutronide.com/
Based On jQuery Right Click from
Cory S.N. LaViska
A Beautiful Site (http://abeautifulsite.net/)
20 December 2008
Visit http://abeautifulsite.net/notebook/68 for more information
Usage:
Capture right click
$("#selector").rightClick( function(e) {
Do something
});
Capture right mouse down
$("#selector").rightMouseDown( function(e) {
Do something
});
Capture right mouseup
$("#selector").rightMouseUp( function(e) {
Do something
});
Disable context menu on an element
$("#selector").noContext();
Capture middle click
$("#selector").middleClick( function(e) {
Do something
});
Capture middle mouse down
$("#selector").middleMouseDown( function(e) {
Do something
});
Capture middle mouseup
$("#selector").middleMouseUp( function(e) {
Do something
});
This plugin is dual-licensed under the GNU General Public License and the MIT License and is copyright 2011 by Paul Bailey.