jQuery plugin to enable text selection events
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.markdown
index.html
jquery.select-click.js

README.markdown

selectClick

Enable selection of text without triggering your click handler.

How to use

selectClick takes up to three parameters:

  • selectCallback: The function to call when a selection event occurs on the target.
  • clickCallback: The function to call when a click event occurs on the target.
  • clickTolerance: Number of pixels the mouse has to move before a click is counted as a select. Defaults to 2.