Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jtap

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jtap

jTap - additional event for jQuery processing touching to screen on touch devices. Those who are faced with adaptation of web-based applications for mobile devices knows that the event "click" is triggered with a delay of 300ms, observe which not very pl

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

jTap

Additional event for jQuery processing touching to screen on touch devices.

Those who are faced with adaptation of web-based applications for mobile devices knows that the event "click" is triggered with a delay of 300ms, observe which not very pleasant. In addition, click on non-delegated place of document will not work. To solve these problems and was designed by jQuery Tap Event.

Usage

Include the plugin file on the page:

<script src="jquery.tap.js"></script>

and set an event handler as follows:

$('selector').on('tap', handler);

Note: A noteworthy feature of plugin is a versatility. No matter where you are using the "tap" event: on a device with a touch screen or on a desktop computer - the handler will be executed disparately.

Changelog

Version 0.3.1, February 7, 2016:

  • fixed an issue when mousedown and mouseup events is triggering on mobile devices;
  • plugin is available as NPM package now.

Version 0.3.0, January 31, 2016:

  • fixed an issue #1: redesigned preventDefault handling.

Version 0.2.9, June 2, 2014:

  • fixed an issue #2: undelegate event works incorrect.

Version 0.2.8, May 27, 2014:

  • was removed the checking of "ontouchstart" in document, because newest versions of browsers contains this property in document for any format of the computer;
  • the library was oriented for jQuery 1.6 or higher.

Version 0.2.7, March 17, 2014:

  • added support of jQuery >= 1.4.x

Version 0.2.6, March 14, 2014:

  • made the code refactoring;
  • updated the license and demonstration.

Version 0.2.5, November 17, 2013:

  • fixed an issue #1: method preventDefault doesn't worked, because the tap event constructed by mousedown/mouseup or touchstart/touchend events and they can not to be prevented.

Version 0.2.4, August 22, 2013:

  • first public version.

Thank you

Licence

jTap is licensed under the MIT license.

Keywords

FAQs

Package last updated on 07 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc