Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
tap-listener
Advanced tools
Readme
Listens to taps
On mobile devices, the click
event is triggered after a delay. Tap Listener listens for native touch and pointer events to trigger a callback immediately.
Used in Flickity.
var tapper = new TapListener( element );
tapper.on( 'tap', function( event ) {
console.log('tap happened');
});
Use TapListener
to extend a class.
function Widget() {
//...
}
// inherit Tap Listener
Widget.prototype = new TapListener();
// or
_.extend( Widget.prototype, TapListener.prototype );
var widgy = new Widget( element );
widgy.on( 'tap', function() {...});
Bower: bower install tap-listener --save
npm: npm install tap-listener
requirejs( [ 'path/to/tap-listener' ], function( TapListener ) {
var tapper = new TapListener( element );
});
var TapListener = require('tap-listener');
var tapper = new TapListener( element );
var tapper = new TapListener( element )
// element {Element} - binds tap events to element
tapper.bindTap( element )
// element {Element} - binds tap events to element
tapper.unbindTap()
// unbinds tap events
tapper.on( eventName, callback )
// eventName {String} - tap, pointerDown, pointerMove, pointerUp, pointerCancel
// callback {Function}
function callback( event, pointer ) {...}
// event {Event} - the original mouseup, touchend, or pointerup event
// pointer {Event} or {Touch} - event object with pageX and pageY
tapper.destroy()
// unbinds tap events
MIT license
By Metafizzy
FAQs
Listens to taps
The npm package tap-listener receives a total of 1,671 weekly downloads. As such, tap-listener popularity was classified as popular.
We found that tap-listener demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.