jqb-ko-fastclick

0.1.1 • Public • Published

KnockoutJS FastClick


Add a fastclick custom data binding to KnockoutJS.

fastclick reduces the 300ms delay problem when clicking on touch devices.

This module is just a KnockoutJS wrapper around ftlabs/fastclick library.

Install into a Workspace project

Install this module via NPM:

npm install jqm-ko-fastklick --save

Then just load it into your src/index.js entry point:

require('jqb-ko-fastclick');

There is no initialisation options or procedures for this module.

Use in a Template

fastclick is just a plain wrapper for the click binding so you use it exactly the same way:

<button data-bind="fastclick:handler">ClickMe!</button>

Click here for KnockoutJS click's documentation.

Package Sidebar

Install

npm i jqb-ko-fastclick

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • marcopeg