npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

zepto-fastclick

v0.0.3

Published

You can use fastclick event if you just replace event name with fastclick.

Readme

Zepto-FastClick

설치방법

bower install zepto-fastclick
npm install zepto-fastclick

사용방법

FastClick 이벤트

fastclick 이라는 이벤트명을 사용하는 것만으로 간단하게 사용 할 수 있습니다.

$('#id').on('fastclick', function(evt) {
	
});

이벤트 Delegation 에도 활용 할 수 있습니다.

$(document).on('fastclick', 'div', function(evt) {
	
});

fastclick 이벤트이 preventDefault 함수를 호출하면 click 이벤트가 중단됩니다.

$('a[href]').on('fastclick', function(evt) {
	evt.preventDefault();
});

연속으로 fastclick 을 했는지 알 수 있도록 연속 발생 횟수를 얻을 수 있습니다.

$('#id').on('fastclick', function(evt) {
	switch (evt.detail) {
	case 2:
		console.log('double taps');
		break;

	case 3:
		console.log('triple taps');
		break;
	}
});

연속 fastclick 인지 판단할 수 있는 interval 를 지정 할 수 있습니다.

$.fastClick.consecutiveInterval = 100; // default: 500

TapHold 이벤트

추가로 taphold 이벤트도 제공하고 있습니다.

$('button').on('taphold', function(evt) {
	
});

TapHold 인지에 사용되는 duration 을 지정할 수 있습니다.

$.fastClick.tapHoldDuration = 500; // default: 1000

기타 기능들

fastclick 가능한 엘리먼트가 active 상태가 되었을때 특정한 CSS 클래스명이 추가되도록 설정을 통해 지정 할 수 있습니다.

button { border-style:outset; }
button.actived { border-style:inset; }
$.fastClick.activedClassName = 'actived'; // default: 'actived'
$.fastClick.activableSelector = 'button'; // default: 'button a'

Installation

bower install zepto-fastclick
npm install zepto-fastclick

Usage

FastClick event

You can use fastclick event if you just replace event name with fastclick.

$('#id').on('fastclick', function(evt) {
	
});

You can also use with event delegation.

$(document).on('fastclick', 'div', function(evt) {
	
});

If you call preventDefault of fastclick, the click event will be prevented.

$('a[href]').on('fastclick', function(evt) {
	evt.preventDefault();
});

You can get a count of consecutive fast-clicks that happened in a short interval.

$('#id').on('fastclick', function(evt) {
	switch (evt.detail) {
	case 2:
		console.log('double taps');
		break;

	case 3:
		console.log('triple taps');
		break;
	}
});

Change the interval be used to detect whether is consecutive or not.

$.fastClick.config.consecutiveInterval = 100; // default: 500

TapHold event

In addition, Zepto-FastClick implements taphold event.

$('button').on('taphold', function(evt) {
	
});

Set the duration of tap-hold.

$.fastClick.config.tapHoldDuration = 500; // default: 1000

Other functions

When the fast-clickable elements are actived, the elements can have specific CSS className. And you can configure about that.

button { border-style:outset; }
button.actived { border-style:inset; }
$.fastClick.config.activedClassName = 'actived'; // default: 'actived'
$.fastClick.config.activableSelector = 'button'; // default: 'button a'